#213E7B#213E7B

#213E7B is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.7% C 0.110 H 263.1°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#213E7B
RGBrgb(33, 62, 123)
HSLhsl(221, 58%, 31%)
HSVhsv(221, 73%, 48%)
CMYKcmyk(73.2%, 49.6%, 0%, 51.8%)
CIE-LABlab(27.29, 11.64, -37.95)
CIE-LCHlch(27.29, 39.70, 287.05°)
OKLaboklab(37.71% -0.0132 -0.1088)
OKLCHoklch(37.71% 0.11 263.1)
XYZxyz(5.9237, 5.1980, 19.4262)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213E7B #7B5E21
analogous
#216B7B #213E7B #31217B
triadic
#213E7B #7B213E #3E7B21
tetradic
#213E7B #7B216B #7B5E21 #217B31
square
#213E7B #7B216B #7B5E21 #217B31
split-complementary
#213E7B #7B3121 #6B7B21
monochromatic
#070D1A #14264B #213E7B #2E56AB #4873CE

Accessibility & contrast

On white

10.30
#213E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#213E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213E7B
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213E7B#FFFFFF#000000##FFFFFF
##213E7B1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D457D
Deuteranopia (green-blind)
#063D7A
Tritanopia (blue-blind)
#004C56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #213e7b;
/* rgb */ color: rgb(33, 62, 123);
/* oklch */ color: oklch(37.7% 0.110 263.1);
Tailwind
colors: {
  custom: {
    50: '#6972a2',
    500: '#213e7b',
    950: '#000000',
  },
}
SCSS
$custom: #213e7b;
$custom-light: #6972a2;
$custom-dark: #000000;
JSON
{
  "hex": "#213e7b",
  "rgb": {
    "r": 33,
    "g": 62,
    "b": 123
  },
  "hsl": {
    "h": 220.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37715,
    "c": 0.10962,
    "h": 263.1
  },
  "luminance": 0.05199
}

Semantic roles & 50–950 ramp

primary
#213E7B
secondary
#AE8E4A
accent
#AF47E1
background
#F6F6FA
surface
#EBECF3
border
#C6C7CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #213E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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