#1D217E#1D217E

#1D217E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.152 H 272.0°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#1D217E
RGBrgb(29, 33, 126)
HSLhsl(238, 63%, 30%)
HSVhsv(238, 77%, 49%)
CMYKcmyk(77%, 73.8%, 0%, 50.6%)
CIE-LABlab(19.45, 32.20, -52.62)
CIE-LCHlch(19.45, 61.69, 301.46°)
OKLaboklab(31.91% 0.0052 -0.1523)
OKLCHoklch(31.91% 0.152 272)
XYZxyz(4.8152, 2.8548, 20.0319)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D217E #7E7A1D
analogous
#1D517E #1D217E #491D7E
triadic
#1D217E #7E1D21 #217E1D
tetradic
#1D217E #7E1D51 #7E7A1D #1D7E49
square
#1D217E #7E1D51 #7E7A1D #1D7E49
split-complementary
#1D217E #7E491D #517E1D
monochromatic
#06071B #12144C #1D217E #282EB0 #4248D3

Accessibility & contrast

On white

13.37
#1D217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1D217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D217E
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D217E#FFFFFF#000000##FFFFFF
##1D217E1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d217e;
/* rgb */ color: rgb(29, 33, 126);
/* oklch */ color: oklch(31.9% 0.152 272.0);
Tailwind
colors: {
  custom: {
    50: '#6a5da4',
    500: '#1d217e',
    950: '#000000',
  },
}
SCSS
$custom: #1d217e;
$custom-light: #6a5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d217e",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 237.526,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31906,
    "c": 0.15238,
    "h": 272
  },
  "luminance": 0.02855
}

Semantic roles & 50–950 ramp

primary
#1D217E
secondary
#B1AD45
accent
#DF42E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1D217E

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

Preview Lab → · Contrast checker → · Palette generator →

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