#1D208C#1D208C

#1D208C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.172 H 271.1°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#1D208C
RGBrgb(29, 32, 140)
HSLhsl(238, 66%, 33%)
HSVhsv(238, 79%, 55%)
CMYKcmyk(79.3%, 77.1%, 0%, 45.1%)
CIE-LABlab(20.78, 37.82, -59.25)
CIE-LCHlch(20.78, 70.29, 302.55°)
OKLaboklab(33.31% 0.0033 -0.1716)
OKLCHoklch(33.31% 0.172 271.1)
XYZxyz(5.7552, 3.1870, 25.1177)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D208C #8C891D
analogous
#1D588C #1D208C #511D8C
triadic
#1D208C #8C1D20 #208C1D
tetradic
#1D208C #8C1D58 #8C891D #1D8C51
square
#1D208C #8C1D58 #8C891D #1D8C51
split-complementary
#1D208C #8C511D #588C1D
monochromatic
#080927 #121459 #1D208C #282CBF #4A4ED9

Accessibility & contrast

On white

12.82
#1D208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D208C
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D208C#FFFFFF#000000##FFFFFF
##1D208C1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d208c;
/* rgb */ color: rgb(29, 32, 140);
/* oklch */ color: oklch(33.3% 0.172 271.1);
Tailwind
colors: {
  custom: {
    50: '#6e5daf',
    500: '#1d208c',
    950: '#000000',
  },
}
SCSS
$custom: #1d208c;
$custom-light: #6e5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#1d208c",
  "rgb": {
    "r": 29,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 238.378,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3331,
    "c": 0.17159,
    "h": 271.1
  },
  "luminance": 0.03188
}

Semantic roles & 50–950 ramp

primary
#1D208C
secondary
#BCB949
accent
#E43FE9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #1D208C

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

Preview Lab → · Contrast checker → · Palette generator →

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