#213A87#213A87

#213A87 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.8% C 0.133 H 266.4°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#213A87
RGBrgb(33, 58, 135)
HSLhsl(225, 61%, 33%)
HSVhsv(225, 76%, 53%)
CMYKcmyk(75.6%, 57%, 0%, 47.1%)
CIE-LABlab(27.01, 19.20, -45.91)
CIE-LCHlch(27.01, 49.76, 292.69°)
OKLaboklab(37.79% -0.0083 -0.1323)
OKLCHoklch(37.79% 0.133 266.4)
XYZxyz(6.5119, 5.0980, 23.5578)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213A87 #876E21
analogous
#216D87 #213A87 #3B2187
triadic
#213A87 #87213A #3A8721
tetradic
#213A87 #87216D #876E21 #21873B
square
#213A87 #87216D #876E21 #21873B
split-complementary
#213A87 #873B21 #6D8721
monochromatic
#091025 #152556 #213A87 #2D4FB8 #4F6FD4

Accessibility & contrast

On white

10.40
#213A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#213A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213A87
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213A87#FFFFFF#000000##FFFFFF
##213A871.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#004D5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #213a87;
/* rgb */ color: rgb(33, 58, 135);
/* oklch */ color: oklch(37.8% 0.133 266.4);
Tailwind
colors: {
  custom: {
    50: '#6c6fab',
    500: '#213a87',
    950: '#000000',
  },
}
SCSS
$custom: #213a87;
$custom-light: #6c6fab;
$custom-dark: #000000;
JSON
{
  "hex": "#213a87",
  "rgb": {
    "r": 33,
    "g": 58,
    "b": 135
  },
  "hsl": {
    "h": 225.294,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37786,
    "c": 0.13256,
    "h": 266.4
  },
  "luminance": 0.05099
}

Semantic roles & 50–950 ramp

primary
#213A87
secondary
#B79D4D
accent
#BD44E4
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #213A87

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

Preview Lab → · Contrast checker → · Palette generator →

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