#1D218B#1D218B

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

Color values

HEX#1D218B
RGBrgb(29, 33, 139)
HSLhsl(238, 65%, 33%)
HSVhsv(238, 79%, 55%)
CMYKcmyk(79.1%, 76.3%, 0%, 45.5%)
CIE-LABlab(20.88, 36.87, -58.46)
CIE-LCHlch(20.88, 69.12, 302.24°)
OKLaboklab(33.35% 0.0031 -0.1693)
OKLCHoklch(33.35% 0.169 271.1)
XYZxyz(5.7092, 3.2124, 24.7403)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D218B #8B871D
analogous
#1D588B #1D218B #501D8B
triadic
#1D218B #8B1D21 #218B1D
tetradic
#1D218B #8B1D58 #8B871D #1D8B50
square
#1D218B #8B1D58 #8B871D #1D8B50
split-complementary
#1D218B #8B501D #588B1D
monochromatic
#080926 #121558 #1D218B #282DBE #494FD9

Accessibility & contrast

On white

12.78
#1D218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D218B
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D218B#FFFFFF#000000##FFFFFF
##1D218B1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d218b;
/* rgb */ color: rgb(29, 33, 139);
/* oklch */ color: oklch(33.3% 0.169 271.1);
Tailwind
colors: {
  custom: {
    50: '#6e5dae',
    500: '#1d218b',
    950: '#000000',
  },
}
SCSS
$custom: #1d218b;
$custom-light: #6e5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d218b",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 237.818,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33345,
    "c": 0.16932,
    "h": 271.1
  },
  "luminance": 0.03213
}

Semantic roles & 50–950 ramp

primary
#1D218B
secondary
#BBB749
accent
#E23FE8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D218B

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

Preview Lab → · Contrast checker → · Palette generator →

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