#1D1E8B#1D1E8B

#1D1E8B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.172 H 271.4°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#1D1E8B
RGBrgb(29, 30, 139)
HSLhsl(239, 65%, 33%)
HSVhsv(239, 79%, 55%)
CMYKcmyk(79.1%, 78.4%, 0%, 45.5%)
CIE-LABlab(20.26, 38.63, -59.49)
CIE-LCHlch(20.26, 70.93, 303.00°)
OKLaboklab(32.91% 0.0043 -0.1722)
OKLCHoklch(32.91% 0.172 271.4)
XYZxyz(5.6296, 3.0532, 24.7137)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1E8B #8B8A1D
analogous
#1D558B #1D1E8B #531D8B
triadic
#1D1E8B #8B1D1E #1E8B1D
tetradic
#1D1E8B #8B1D55 #8B8A1D #1D8B53
square
#1D1E8B #8B1D55 #8B8A1D #1D8B53
split-complementary
#1D1E8B #8B531D #558B1D
monochromatic
#080826 #121358 #1D1E8B #2829BE #494BD9

Accessibility & contrast

On white

13.04
#1D1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1D1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1E8B
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1E8B#FFFFFF#000000##FFFFFF
##1D1E8B1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002B89
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d1e8b;
/* rgb */ color: rgb(29, 30, 139);
/* oklch */ color: oklch(32.9% 0.172 271.4);
Tailwind
colors: {
  custom: {
    50: '#6e5cae',
    500: '#1d1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #1d1e8b;
$custom-light: #6e5cae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1e8b",
  "rgb": {
    "r": 29,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 239.455,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.32907,
    "c": 0.17228,
    "h": 271.4
  },
  "luminance": 0.03054
}

Semantic roles & 50–950 ramp

primary
#1D1E8B
secondary
#BBBA49
accent
#E73FE8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D1E8B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#1D1E8B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva