#1D218D#1D218D

#1D218D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.172 H 270.9°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#1D218D
RGBrgb(29, 33, 141)
HSLhsl(238, 66%, 33%)
HSVhsv(238, 79%, 55%)
CMYKcmyk(79.4%, 76.6%, 0%, 44.7%)
CIE-LABlab(21.10, 37.58, -59.34)
CIE-LCHlch(21.10, 70.24, 302.34°)
OKLaboklab(33.57% 0.0028 -0.1718)
OKLCHoklch(33.57% 0.172 270.9)
XYZxyz(5.8566, 3.2714, 25.5169)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D218D #8D891D
analogous
#1D598D #1D218D #511D8D
triadic
#1D218D #8D1D21 #218D1D
tetradic
#1D218D #8D1D59 #8D891D #1D8D51
square
#1D218D #8D1D59 #8D891D #1D8D51
split-complementary
#1D218D #8D511D #598D1D
monochromatic
#080927 #13155A #1D218D #272DC0 #4B50DA

Accessibility & contrast

On white

12.69
#1D218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1D218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D218D
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D218D#FFFFFF#000000##FFFFFF
##1D218D1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d218d;
/* rgb */ color: rgb(29, 33, 141);
/* oklch */ color: oklch(33.6% 0.172 270.9);
Tailwind
colors: {
  custom: {
    50: '#6e5eb0',
    500: '#1d218d',
    950: '#000000',
  },
}
SCSS
$custom: #1d218d;
$custom-light: #6e5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d218d",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 237.857,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33571,
    "c": 0.17186,
    "h": 270.9
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#1D218D
secondary
#BCB84A
accent
#E33FE9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D218D

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

Preview Lab → · Contrast checker → · Palette generator →

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