#1D218A#1D218A

#1D218A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.168 H 271.1°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#1D218A
RGBrgb(29, 33, 138)
HSLhsl(238, 65%, 33%)
HSVhsv(238, 79%, 54%)
CMYKcmyk(79%, 76.1%, 0%, 45.9%)
CIE-LABlab(20.76, 36.52, -58.02)
CIE-LCHlch(20.76, 68.56, 302.18°)
OKLaboklab(33.23% 0.0033 -0.168)
OKLCHoklch(33.23% 0.168 271.1)
XYZxyz(5.6364, 3.1833, 24.3572)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D218A #8A861D
analogous
#1D588A #1D218A #4F1D8A
triadic
#1D218A #8A1D21 #218A1D
tetradic
#1D218A #8A1D58 #8A861D #1D8A4F
square
#1D218A #8A1D58 #8A861D #1D8A4F
split-complementary
#1D218A #8A4F1D #588A1D
monochromatic
#080925 #121557 #1D218A #282DBD #494ED9

Accessibility & contrast

On white

12.83
#1D218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1D218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D218A
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D218A#FFFFFF#000000##FFFFFF
##1D218A1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d218a;
/* rgb */ color: rgb(29, 33, 138);
/* oklch */ color: oklch(33.2% 0.168 271.1);
Tailwind
colors: {
  custom: {
    50: '#6d5dad',
    500: '#1d218a',
    950: '#000000',
  },
}
SCSS
$custom: #1d218a;
$custom-light: #6d5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d218a",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 237.798,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33233,
    "c": 0.16804,
    "h": 271.1
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#1D218A
secondary
#BBB748
accent
#E240E8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D218A

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

Preview Lab → · Contrast checker → · Palette generator →

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