#213D97#213D97

#213D97 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.8% C 0.151 H 266.3°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#213D97
RGBrgb(33, 61, 151)
HSLhsl(226, 64%, 36%)
HSVhsv(226, 78%, 59%)
CMYKcmyk(78.1%, 59.6%, 0%, 40.8%)
CIE-LABlab(29.14, 23.43, -52.30)
CIE-LCHlch(29.14, 57.31, 294.14°)
OKLaboklab(39.79% -0.0098 -0.151)
OKLCHoklch(39.79% 0.151 266.3)
XYZxyz(7.8799, 5.8943, 29.9946)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213D97 #977B21
analogous
#217897 #213D97 #402197
triadic
#213D97 #97213D #3D9721
tetradic
#213D97 #972178 #977B21 #219740
square
#213D97 #972178 #977B21 #219740
split-complementary
#213D97 #974021 #789721
monochromatic
#0B1433 #162965 #213D97 #2C51C9 #5877DA

Accessibility & contrast

On white

9.64
#213D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#213D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213D97
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213D97#FFFFFF#000000##FFFFFF
##213D971.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #213d97;
/* rgb */ color: rgb(33, 61, 151);
/* oklch */ color: oklch(39.8% 0.151 266.3);
Tailwind
colors: {
  custom: {
    50: '#6f72b6',
    500: '#213d97',
    950: '#000000',
  },
}
SCSS
$custom: #213d97;
$custom-light: #6f72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#213d97",
  "rgb": {
    "r": 33,
    "g": 61,
    "b": 151
  },
  "hsl": {
    "h": 225.763,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39793,
    "c": 0.15136,
    "h": 266.3
  },
  "luminance": 0.05895
}

Semantic roles & 50–950 ramp

primary
#213D97
secondary
#BEA655
accent
#C041E7
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #213D97

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

Preview Lab → · Contrast checker → · Palette generator →

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