#1D217B#1D217B

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

Color values

HEX#1D217B
RGBrgb(29, 33, 123)
HSLhsl(237, 62%, 30%)
HSVhsv(237, 76%, 48%)
CMYKcmyk(76.4%, 73.2%, 0%, 51.8%)
CIE-LABlab(19.13, 31.09, -51.24)
CIE-LCHlch(19.13, 59.94, 301.25°)
OKLaboklab(31.58% 0.0057 -0.1482)
OKLCHoklch(31.58% 0.148 272.2)
XYZxyz(4.6245, 2.7785, 19.0276)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D217B #7B771D
analogous
#1D507B #1D217B #481D7B
triadic
#1D217B #7B1D21 #217B1D
tetradic
#1D217B #7B1D50 #7B771D #1D7B48
square
#1D217B #7B1D50 #7B771D #1D7B48
split-complementary
#1D217B #7B481D #507B1D
monochromatic
#060719 #111449 #1D217B #292EAD #4047D2

Accessibility & contrast

On white

13.50
#1D217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D217B
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D217B#FFFFFF#000000##FFFFFF
##1D217B1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d217b;
/* rgb */ color: rgb(29, 33, 123);
/* oklch */ color: oklch(31.6% 0.148 272.2);
Tailwind
colors: {
  custom: {
    50: '#695da2',
    500: '#1d217b',
    950: '#000000',
  },
}
SCSS
$custom: #1d217b;
$custom-light: #695da2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d217b",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 237.447,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31582,
    "c": 0.14836,
    "h": 272.2
  },
  "luminance": 0.02779
}

Semantic roles & 50–950 ramp

primary
#1D217B
secondary
#AFAA45
accent
#DE43E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1D217B

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

Preview Lab → · Contrast checker → · Palette generator →

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