#213D8D#213D8D

#213D8D is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.9% C 0.137 H 265.7°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#213D8D
RGBrgb(33, 61, 141)
HSLhsl(224, 62%, 34%)
HSVhsv(224, 77%, 55%)
CMYKcmyk(76.6%, 56.7%, 0%, 44.7%)
CIE-LABlab(28.34, 19.50, -47.48)
CIE-LCHlch(28.34, 51.32, 292.33°)
OKLaboklab(38.93% -0.0103 -0.1369)
OKLCHoklch(38.93% 0.137 265.7)
XYZxyz(7.1020, 5.5831, 25.8975)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213D8D #8D7121
analogous
#21738D #213D8D #3B218D
triadic
#213D8D #8D213D #3D8D21
tetradic
#213D8D #8D2173 #8D7121 #218D3B
square
#213D8D #8D2173 #8D7121 #218D3B
split-complementary
#213D8D #8D3B21 #738D21
monochromatic
#0A122A #15285B #213D8D #2D52BF #5274D6

Accessibility & contrast

On white

9.92
#213D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#213D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213D8D
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213D8D#FFFFFF#000000##FFFFFF
##213D8D1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #213d8d;
/* rgb */ color: rgb(33, 61, 141);
/* oklch */ color: oklch(38.9% 0.137 265.7);
Tailwind
colors: {
  custom: {
    50: '#6d72af',
    500: '#213d8d',
    950: '#000000',
  },
}
SCSS
$custom: #213d8d;
$custom-light: #6d72af;
$custom-dark: #000000;
JSON
{
  "hex": "#213d8d",
  "rgb": {
    "r": 33,
    "g": 61,
    "b": 141
  },
  "hsl": {
    "h": 224.444,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38932,
    "c": 0.13725,
    "h": 265.7
  },
  "luminance": 0.05584
}

Semantic roles & 50–950 ramp

primary
#213D8D
secondary
#BA9E50
accent
#BB43E5
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #213D8D

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

Preview Lab → · Contrast checker → · Palette generator →

#213D8D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva