#213A7E#213A7E

#213A7E is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.0% C 0.119 H 265.6°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#213A7E
RGBrgb(33, 58, 126)
HSLhsl(224, 58%, 31%)
HSVhsv(224, 74%, 49%)
CMYKcmyk(73.8%, 54%, 0%, 50.6%)
CIE-LABlab(26.32, 15.62, -41.41)
CIE-LCHlch(26.32, 44.26, 290.67°)
OKLaboklab(37.04% -0.0091 -0.1191)
OKLCHoklch(37.04% 0.119 265.6)
XYZxyz(5.9048, 4.8552, 20.3606)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213A7E #7E6521
analogous
#21687E #213A7E #36217E
triadic
#213A7E #7E213A #3A7E21
tetradic
#213A7E #7E2168 #7E6521 #217E36
square
#213A7E #7E2168 #7E6521 #217E36
split-complementary
#213A7E #7E3621 #687E21
monochromatic
#080D1D #14244E #213A7E #2E50AE #4A6ED0

Accessibility & contrast

On white

10.65
#213A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#213A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213A7E
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213A7E#FFFFFF#000000##FFFFFF
##213A7E1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4380
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #213a7e;
/* rgb */ color: rgb(33, 58, 126);
/* oklch */ color: oklch(37.0% 0.119 265.6);
Tailwind
colors: {
  custom: {
    50: '#696fa4',
    500: '#213a7e',
    950: '#000000',
  },
}
SCSS
$custom: #213a7e;
$custom-light: #696fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#213a7e",
  "rgb": {
    "r": 33,
    "g": 58,
    "b": 126
  },
  "hsl": {
    "h": 223.871,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37042,
    "c": 0.11941,
    "h": 265.6
  },
  "luminance": 0.04856
}

Semantic roles & 50–950 ramp

primary
#213A7E
secondary
#B1954A
accent
#B846E2
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #213A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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