#1D208B#1D208B

#1D208B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.170 H 271.2°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#1D208B
RGBrgb(29, 32, 139)
HSLhsl(238, 65%, 33%)
HSVhsv(238, 79%, 55%)
CMYKcmyk(79.1%, 77%, 0%, 45.5%)
CIE-LABlab(20.66, 37.47, -58.81)
CIE-LCHlch(20.66, 69.73, 302.50°)
OKLaboklab(33.2% 0.0035 -0.1703)
OKLCHoklch(33.2% 0.17 271.2)
XYZxyz(5.6818, 3.1577, 24.7311)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D208B #8B881D
analogous
#1D578B #1D208B #511D8B
triadic
#1D208B #8B1D20 #208B1D
tetradic
#1D208B #8B1D57 #8B881D #1D8B51
square
#1D208B #8B1D57 #8B881D #1D8B51
split-complementary
#1D208B #8B511D #578B1D
monochromatic
#080926 #121458 #1D208B #282CBE #494DD9

Accessibility & contrast

On white

12.87
#1D208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1D208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D208B
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D208B#FFFFFF#000000##FFFFFF
##1D208B1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d208b;
/* rgb */ color: rgb(29, 32, 139);
/* oklch */ color: oklch(33.2% 0.170 271.2);
Tailwind
colors: {
  custom: {
    50: '#6e5dae',
    500: '#1d208b',
    950: '#000000',
  },
}
SCSS
$custom: #1d208b;
$custom-light: #6e5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d208b",
  "rgb": {
    "r": 29,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 238.364,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33196,
    "c": 0.17033,
    "h": 271.2
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#1D208B
secondary
#BBB849
accent
#E43FE8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D208B

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

Preview Lab → · Contrast checker → · Palette generator →

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