#1D208E#1D208E

#1D208E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.174 H 271.0°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#1D208E
RGBrgb(29, 32, 142)
HSLhsl(238, 66%, 34%)
HSVhsv(238, 80%, 56%)
CMYKcmyk(79.6%, 77.5%, 0%, 44.3%)
CIE-LABlab(21.01, 38.51, -60.12)
CIE-LCHlch(21.01, 71.40, 302.64°)
OKLaboklab(33.54% 0.003 -0.1741)
OKLCHoklch(33.54% 0.174 271)
XYZxyz(5.9040, 3.2466, 25.9014)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D208E #8E8B1D
analogous
#1D588E #1D208E #521D8E
triadic
#1D208E #8E1D20 #208E1D
tetradic
#1D208E #8E1D58 #8E8B1D #1D8E52
square
#1D208E #8E1D58 #8E8B1D #1D8E52
split-complementary
#1D208E #8E521D #588E1D
monochromatic
#080928 #13155B #1D208E #272BC1 #4B4FDA

Accessibility & contrast

On white

12.73
#1D208E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1D208E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D208E
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D208E#FFFFFF#000000##FFFFFF
##1D208E1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d208e;
/* rgb */ color: rgb(29, 32, 142);
/* oklch */ color: oklch(33.5% 0.174 271.0);
Tailwind
colors: {
  custom: {
    50: '#6f5db0',
    500: '#1d208e',
    950: '#000000',
  },
}
SCSS
$custom: #1d208e;
$custom-light: #6f5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d208e",
  "rgb": {
    "r": 29,
    "g": 32,
    "b": 142
  },
  "hsl": {
    "h": 238.407,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33538,
    "c": 0.17412,
    "h": 271
  },
  "luminance": 0.03247
}

Semantic roles & 50–950 ramp

primary
#1D208E
secondary
#BDBA4A
accent
#E43FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D208E

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

Preview Lab → · Contrast checker → · Palette generator →

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