Skip to content

#1d2dec

a balanced, electric blue · cool · closest name: Blue

RGB
29, 45, 236
HSL
235°, 85%, 52%
CMYK
88, 81, 0, 8
Luminance
0.0819

At a glance

Every number on this page in one read: what #1d2dec is made of, how bright it looks, and which way it leans.

Hex
#1d2dec
Hue
235°
blue
Saturation
85%
electric
Lightness
52%
balanced
Brightness
93%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0819
WCAG relative
Temperature
Cool
86/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.96:1
Closest name
Blue
ΔE2000 4.1
Where it sits
Hue235° of 360°
Saturation85%
Lightness52%
Temperature
Warm ← → Cool86% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#1d2dec
RGBrgb(29, 45, 236)
HSLhsl(235, 85%, 52%)
CMYKcmyk(88%, 81%, 0%, 8%)
LABlab(34.4 62.2 -93.7)
LCHlch(34.4 112.4 303.6)
OKLCHoklch(0.461 0.272 266.8)
Decimal1912300
Display P3color(display-p3 0.114 0.176 0.925)

Copy-ready code

/* CSS */
color: #1d2dec;
background-color: #1d2dec;
/* Tailwind (arbitrary) */
class="text-[#1d2dec] bg-[#1d2dec]"
/* SCSS */
$brand: #1d2dec;
/* SwiftUI */
Color(red: 0.114, green: 0.176, blue: 0.925)
/* Android */
Color.parseColor("#1d2dec")
/* Flutter */
Color(0xFF1D2DEC)
/* Python / OpenCV (BGR) */
(236, 45, 29)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #1d2dec · 7.96:1
Use #ffffffAAA at every size.
Aa
White text · 7.96:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.64:1
AA fail · AA large fail · AAA fail
Reading the other direction: #1d2dec as text scores 7.96:1 on white and 2.64:1 on black.

Accessibility — WCAG contrast

Aa
#1d2dec on white: 7.96:1
AA ✓ pass · AA-large · AAA
Aa
#1d2dec on black: 2.64:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005BF1
deuteranopia · #0046E9
tritanopia · #006B8F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #1d2dec is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F2F3FC
#E6E7FA
#C5C9F7
#979FF6
#646FF2
#1d2dec
#1323E2
#101DBC
#0D1797
#0E156D
#090D44
Base = 500Lightest = 50 · #F2F3FCDarkest = 950 · #090D44
:root {
  --brand-50: #F2F3FC;
  --brand-100: #E6E7FA;
  --brand-200: #C5C9F7;
  --brand-300: #979FF6;
  --brand-400: #646FF2;
  --brand-500: #1d2dec;
  --brand-600: #1323E2;
  --brand-700: #101DBC;
  --brand-800: #0D1797;
  --brand-900: #0E156D;
  --brand-950: #090D44;
  --brand: #1d2dec;
  --brand-ink: #ffffff;
}

Colors that work with #1d2dec

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F4F5FA
Tinted page background
Border#C0C3ED
Hairlines and dividers
Muted text#4B519B
Captions on the surface
Accent#C0850C
Second voice, not a rival
Dark variant#0A1276
Hover, pressed, headers
Light variant#E7E9FD
Selected rows, tints
Dark surface#141524
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #1d2dec

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#ECDC1D
Analogous left#1D94EC
Analogous right#751DEC
Split-complement 1#EC751D
Split-complement 2#94EC1D
Triadic 1#EC1D2D
Triadic 2#2DEC1D
Tetradic#EC1D94

RGB percentages

Red11.4%
Green17.6%
Blue92.5%

CMYK percentages

Cyan87.7%
Magenta80.9%
Yellow0.0%
Key (black)7.5%

Color previews

#1d2dec text on a black background

contrast 2.64:1

Card sample

#1d2dec text on a white background

contrast 7.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #1d2dec;
Background color
Panel with #1d2dec background
background-color: #1d2dec;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #1d2dec;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(29, 45, 236, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(29, 45, 236, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1d2dec;
background: linear-gradient(135deg, #1d2dec, #971DEC);

Monochromatic scale

Palettes built from #1d2dec

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#1d2dec in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#1d2dec, answered

What color is #1d2dec?

#1d2dec is a balanced electric blue, closest to Blue (ΔE2000 4.1). It sits at 235° on the hue wheel with 85% saturation and 52% lightness, which reads as cool.

What is the RGB value of #1d2dec?

rgb(29, 45, 236) — 29 red, 45 green and 236 blue out of 255, or 11.4% / 17.6% / 92.5% by channel.

Is #1d2dec a light or a dark color?

It is a dark color. Relative luminance is 0.0819 and perceived brightness is 35%, so white text on it reaches 7.96:1.

Should I use black or white text on #1d2dec?

White. It scores 7.96:1 against #1d2dec, versus 2.64:1 for black — AAA at any size.

What is the complementary color of #1d2dec?

#ECDC1D sits directly opposite on the wheel. Softer options are the split-complements #EC751D and #94EC1D, which give the same contrast with far less vibration.

What colors go well with #1d2dec?

For interface work: #F4F5FA as the surface, #C0C3ED for borders, #4B519B for secondary text, #C0850C as an accent and #0A1276 for hover and pressed states. For a palette, the analogous pair #1D94EC and #751DEC stays calm, while #ECDC1D is the loudest partner.

What is #1d2dec in CMYK for printing?

cmyk(88%, 81%, 0%, 8%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #1d2dec warm or cool?

Cool — it scores 86 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #591DEC; nudged cooler, #1B53EE.

Work with #1d2dec in the Color Lab