#213F87#213F87

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

Color values

HEX#213F87
RGBrgb(33, 63, 135)
HSLhsl(222, 61%, 33%)
HSVhsv(222, 76%, 53%)
CMYKcmyk(75.6%, 53.3%, 0%, 47.1%)
CIE-LABlab(28.45, 15.73, -43.58)
CIE-LCHlch(28.45, 46.33, 289.85°)
OKLaboklab(38.87% -0.0125 -0.1254)
OKLCHoklch(38.87% 0.126 264.3)
XYZxyz(6.7763, 5.6269, 23.6459)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213F87 #876921
analogous
#217287 #213F87 #362187
triadic
#213F87 #87213F #3F8721
tetradic
#213F87 #872172 #876921 #218736
square
#213F87 #872172 #876921 #218736
split-complementary
#213F87 #873621 #728721
monochromatic
#091125 #152856 #213F87 #2D56B8 #4F76D4

Accessibility & contrast

On white

9.88
#213F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#213F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213F87
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213F87#FFFFFF#000000##FFFFFF
##213F871.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10488A
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #213f87;
/* rgb */ color: rgb(33, 63, 135);
/* oklch */ color: oklch(38.9% 0.126 264.3);
Tailwind
colors: {
  custom: {
    50: '#6b73aa',
    500: '#213f87',
    950: '#000000',
  },
}
SCSS
$custom: #213f87;
$custom-light: #6b73aa;
$custom-dark: #000000;
JSON
{
  "hex": "#213f87",
  "rgb": {
    "r": 33,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 222.353,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38874,
    "c": 0.12599,
    "h": 264.3
  },
  "luminance": 0.05628
}

Semantic roles & 50–950 ramp

primary
#213F87
secondary
#B7984D
accent
#B544E4
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #213F87

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

Preview Lab → · Contrast checker → · Palette generator →

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