#1D207E#1D207E

#1D207E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.153 H 272.2°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#1D207E
RGBrgb(29, 32, 126)
HSLhsl(238, 63%, 30%)
HSVhsv(238, 77%, 49%)
CMYKcmyk(77%, 74.6%, 0%, 50.6%)
CIE-LABlab(19.22, 32.83, -53.00)
CIE-LCHlch(19.22, 62.34, 301.77°)
OKLaboklab(31.74% 0.0058 -0.1534)
OKLCHoklch(31.74% 0.153 272.2)
XYZxyz(4.7878, 2.8001, 20.0228)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D207E #7E7B1D
analogous
#1D517E #1D207E #4A1D7E
triadic
#1D207E #7E1D20 #207E1D
tetradic
#1D207E #7E1D51 #7E7B1D #1D7E4A
square
#1D207E #7E1D51 #7E7B1D #1D7E4A
split-complementary
#1D207E #7E4A1D #517E1D
monochromatic
#06071B #12134C #1D207E #282DB0 #4246D3

Accessibility & contrast

On white

13.46
#1D207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1D207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D207E
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D207E#FFFFFF#000000##FFFFFF
##1D207E1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d207e;
/* rgb */ color: rgb(29, 32, 126);
/* oklch */ color: oklch(31.7% 0.153 272.2);
Tailwind
colors: {
  custom: {
    50: '#6a5ca4',
    500: '#1d207e',
    950: '#000000',
  },
}
SCSS
$custom: #1d207e;
$custom-light: #6a5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d207e",
  "rgb": {
    "r": 29,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 238.144,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31743,
    "c": 0.15349,
    "h": 272.2
  },
  "luminance": 0.02801
}

Semantic roles & 50–950 ramp

primary
#1D207E
secondary
#B1AE45
accent
#E142E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1D207E

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

Preview Lab → · Contrast checker → · Palette generator →

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