#1D216B#1D216B

#1D216B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.126 H 273.5°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#1D216B
RGBrgb(29, 33, 107)
HSLhsl(237, 57%, 27%)
HSVhsv(237, 73%, 42%)
CMYKcmyk(72.9%, 69.2%, 0%, 58%)
CIE-LABlab(17.51, 25.08, -43.60)
CIE-LCHlch(17.51, 50.30, 299.91°)
OKLaboklab(29.91% 0.0076 -0.1259)
OKLCHoklch(29.91% 0.126 273.5)
XYZxyz(3.7035, 2.4101, 14.1771)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D216B #6B671D
analogous
#1D486B #1D216B #401D6B
triadic
#1D216B #6B1D21 #216B1D
tetradic
#1D216B #6B1D48 #6B671D #1D6B40
square
#1D216B #6B1D48 #6B671D #1D6B40
split-complementary
#1D216B #6B401D #486B1D
monochromatic
#070718 #10123B #1D216B #2A309B #3940C9

Accessibility & contrast

On white

14.17
#1D216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1D216B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D216B
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D216B#FFFFFF#000000##FFFFFF
##1D216B1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1d216b;
/* rgb */ color: rgb(29, 33, 107);
/* oklch */ color: oklch(29.9% 0.126 273.5);
Tailwind
colors: {
  custom: {
    50: '#655c96',
    500: '#1d216b',
    950: '#000000',
  },
}
SCSS
$custom: #1d216b;
$custom-light: #655c96;
$custom-dark: #000000;
JSON
{
  "hex": "#1d216b",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 236.923,
    "s": 57.353,
    "l": 26.667
  },
  "oklch": {
    "l": 0.2991,
    "c": 0.12615,
    "h": 273.5
  },
  "luminance": 0.0241
}

Semantic roles & 50–950 ramp

primary
#1D216B
secondary
#A09B44
accent
#D947E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1D216B

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

Preview Lab → · Contrast checker → · Palette generator →

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