#213E9B#213E9B

#213E9B is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.156 H 266.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#213E9B
RGBrgb(33, 62, 155)
HSLhsl(226, 65%, 37%)
HSVhsv(226, 79%, 61%)
CMYKcmyk(78.7%, 60%, 0%, 39.2%)
CIE-LABlab(29.75, 24.32, -53.75)
CIE-LCHlch(29.75, 59.00, 294.34°)
OKLaboklab(40.35% -0.0104 -0.1553)
OKLCHoklch(40.35% 0.156 266.2)
XYZxyz(8.2641, 6.1342, 31.7525)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213E9B #9B7E21
analogous
#217B9B #213E9B #41219B
triadic
#213E9B #9B213E #3E9B21
tetradic
#213E9B #9B217B #9B7E21 #219B41
square
#213E9B #9B217B #9B7E21 #219B41
split-complementary
#213E9B #9B4121 #7B9B21
monochromatic
#0C1636 #162A69 #213E9B #2C52CD #5A79DC

Accessibility & contrast

On white

9.43
#213E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#213E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213E9B
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213E9B#FFFFFF#000000##FFFFFF
##213E9B1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #213e9b;
/* rgb */ color: rgb(33, 62, 155);
/* oklch */ color: oklch(40.3% 0.156 266.2);
Tailwind
colors: {
  custom: {
    50: '#7072b9',
    500: '#213e9b',
    950: '#000000',
  },
}
SCSS
$custom: #213e9b;
$custom-light: #7072b9;
$custom-dark: #000000;
JSON
{
  "hex": "#213e9b",
  "rgb": {
    "r": 33,
    "g": 62,
    "b": 155
  },
  "hsl": {
    "h": 225.738,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40349,
    "c": 0.15563,
    "h": 266.2
  },
  "luminance": 0.06135
}

Semantic roles & 50–950 ramp

primary
#213E9B
secondary
#C0A758
accent
#C040E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #213E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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