#213D7E#213D7E

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

Color values

HEX#213D7E
RGBrgb(33, 61, 126)
HSLhsl(222, 58%, 31%)
HSVhsv(222, 74%, 49%)
CMYKcmyk(73.8%, 51.6%, 0%, 50.6%)
CIE-LABlab(27.20, 13.53, -39.98)
CIE-LCHlch(27.20, 42.20, 288.70°)
OKLaboklab(37.72% -0.0118 -0.1148)
OKLCHoklch(37.72% 0.115 264.1)
XYZxyz(6.0605, 5.1665, 20.4125)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213D7E #7E6221
analogous
#216B7E #213D7E #33217E
triadic
#213D7E #7E213D #3D7E21
tetradic
#213D7E #7E216B #7E6221 #217E33
square
#213D7E #7E216B #7E6221 #217E33
split-complementary
#213D7E #7E3321 #6B7E21
monochromatic
#080E1D #14264E #213D7E #2E54AE #4A72D0

Accessibility & contrast

On white

10.33
#213D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#213D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213D7E
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213D7E#FFFFFF#000000##FFFFFF
##213D7E1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174580
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#004C57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #213d7e;
/* rgb */ color: rgb(33, 61, 126);
/* oklch */ color: oklch(37.7% 0.115 264.1);
Tailwind
colors: {
  custom: {
    50: '#6972a4',
    500: '#213d7e',
    950: '#000000',
  },
}
SCSS
$custom: #213d7e;
$custom-light: #6972a4;
$custom-dark: #000000;
JSON
{
  "hex": "#213d7e",
  "rgb": {
    "r": 33,
    "g": 61,
    "b": 126
  },
  "hsl": {
    "h": 221.935,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37716,
    "c": 0.11541,
    "h": 264.1
  },
  "luminance": 0.05167
}

Semantic roles & 50–950 ramp

primary
#213D7E
secondary
#B1924A
accent
#B346E2
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #213D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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