#213D87#213D87

#213D87 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.4% C 0.129 H 265.2°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#213D87
RGBrgb(33, 61, 135)
HSLhsl(224, 61%, 33%)
HSVhsv(224, 76%, 53%)
CMYKcmyk(75.6%, 54.8%, 0%, 47.1%)
CIE-LABlab(27.87, 17.11, -44.52)
CIE-LCHlch(27.87, 47.69, 291.03°)
OKLaboklab(38.43% -0.0108 -0.1282)
OKLCHoklch(38.43% 0.129 265.2)
XYZxyz(6.6676, 5.4094, 23.6097)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213D87 #876B21
analogous
#217087 #213D87 #382187
triadic
#213D87 #87213D #3D8721
tetradic
#213D87 #872170 #876B21 #218738
square
#213D87 #872170 #876B21 #218738
split-complementary
#213D87 #873821 #708721
monochromatic
#091125 #152756 #213D87 #2D53B8 #4F73D4

Accessibility & contrast

On white

10.09
#213D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#213D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213D87
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213D87#FFFFFF#000000##FFFFFF
##213D871.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06478A
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #213d87;
/* rgb */ color: rgb(33, 61, 135);
/* oklch */ color: oklch(38.4% 0.129 265.2);
Tailwind
colors: {
  custom: {
    50: '#6b72ab',
    500: '#213d87',
    950: '#000000',
  },
}
SCSS
$custom: #213d87;
$custom-light: #6b72ab;
$custom-dark: #000000;
JSON
{
  "hex": "#213d87",
  "rgb": {
    "r": 33,
    "g": 61,
    "b": 135
  },
  "hsl": {
    "h": 223.529,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38434,
    "c": 0.12862,
    "h": 265.2
  },
  "luminance": 0.0541
}

Semantic roles & 50–950 ramp

primary
#213D87
secondary
#B79A4D
accent
#B844E4
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #213D87

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

Preview Lab → · Contrast checker → · Palette generator →

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