#1D208D#1D208D

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

Color values

HEX#1D208D
RGBrgb(29, 32, 141)
HSLhsl(238, 66%, 33%)
HSVhsv(238, 79%, 55%)
CMYKcmyk(79.4%, 77.3%, 0%, 44.7%)
CIE-LABlab(20.89, 38.16, -59.69)
CIE-LCHlch(20.89, 70.84, 302.60°)
OKLaboklab(33.42% 0.0032 -0.1728)
OKLCHoklch(33.42% 0.173 271)
XYZxyz(5.8293, 3.2167, 25.5078)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D208D #8D8A1D
analogous
#1D588D #1D208D #521D8D
triadic
#1D208D #8D1D20 #208D1D
tetradic
#1D208D #8D1D58 #8D8A1D #1D8D52
square
#1D208D #8D1D58 #8D8A1D #1D8D52
split-complementary
#1D208D #8D521D #588D1D
monochromatic
#080927 #13145A #1D208D #272CC0 #4B4EDA

Accessibility & contrast

On white

12.78
#1D208D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1D208D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D208D
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D208D#FFFFFF#000000##FFFFFF
##1D208D1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d208d;
/* rgb */ color: rgb(29, 32, 141);
/* oklch */ color: oklch(33.4% 0.173 271.0);
Tailwind
colors: {
  custom: {
    50: '#6e5db0',
    500: '#1d208d',
    950: '#000000',
  },
}
SCSS
$custom: #1d208d;
$custom-light: #6e5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d208d",
  "rgb": {
    "r": 29,
    "g": 32,
    "b": 141
  },
  "hsl": {
    "h": 238.393,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33424,
    "c": 0.17286,
    "h": 271
  },
  "luminance": 0.03217
}

Semantic roles & 50–950 ramp

primary
#1D208D
secondary
#BCB94A
accent
#E43FE9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D208D

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

Preview Lab → · Contrast checker → · Palette generator →

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