#1D218E#1D218E

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

Color values

HEX#1D218E
RGBrgb(29, 33, 142)
HSLhsl(238, 66%, 34%)
HSVhsv(238, 80%, 56%)
CMYKcmyk(79.6%, 76.8%, 0%, 44.3%)
CIE-LABlab(21.21, 37.93, -59.78)
CIE-LCHlch(21.21, 70.79, 302.39°)
OKLaboklab(33.68% 0.0026 -0.1731)
OKLCHoklch(33.68% 0.173 270.9)
XYZxyz(5.9314, 3.3013, 25.9105)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D218E #8E8A1D
analogous
#1D598E #1D218E #511D8E
triadic
#1D218E #8E1D21 #218E1D
tetradic
#1D218E #8E1D59 #8E8A1D #1D8E51
square
#1D218E #8E1D59 #8E8A1D #1D8E51
split-complementary
#1D218E #8E511D #598E1D
monochromatic
#080928 #13155B #1D218E #272DC1 #4B50DA

Accessibility & contrast

On white

12.65
#1D218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1D218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D218E
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D218E#FFFFFF#000000##FFFFFF
##1D218E1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d218e;
/* rgb */ color: rgb(29, 33, 142);
/* oklch */ color: oklch(33.7% 0.173 270.9);
Tailwind
colors: {
  custom: {
    50: '#6e5eb0',
    500: '#1d218e',
    950: '#000000',
  },
}
SCSS
$custom: #1d218e;
$custom-light: #6e5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d218e",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 237.876,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33684,
    "c": 0.17312,
    "h": 270.9
  },
  "luminance": 0.03302
}

Semantic roles & 50–950 ramp

primary
#1D218E
secondary
#BDB94A
accent
#E33FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D218E

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

Preview Lab → · Contrast checker → · Palette generator →

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