#213E9D#213E9D

#213E9D is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.158 H 266.2°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#213E9D
RGBrgb(33, 62, 157)
HSLhsl(226, 65%, 37%)
HSVhsv(226, 79%, 62%)
CMYKcmyk(79%, 60.5%, 0%, 38.4%)
CIE-LABlab(29.92, 25.10, -54.69)
CIE-LCHlch(29.92, 60.18, 294.65°)
OKLaboklab(40.53% -0.0104 -0.158)
OKLCHoklch(40.53% 0.158 266.2)
XYZxyz(8.4335, 6.2019, 32.6444)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213E9D #9D8021
analogous
#217C9D #213E9D #42219D
triadic
#213E9D #9D213E #3E9D21
tetradic
#213E9D #9D217C #9D8021 #219D42
square
#213E9D #9D217C #9D8021 #219D42
split-complementary
#213E9D #9D4221 #7C9D21
monochromatic
#0C1638 #162A6A #213E9D #2C52D0 #5C7ADD

Accessibility & contrast

On white

9.37
#213E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#213E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213E9D
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213E9D#FFFFFF#000000##FFFFFF
##213E9D1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #213e9d;
/* rgb */ color: rgb(33, 62, 157);
/* oklch */ color: oklch(40.5% 0.158 266.2);
Tailwind
colors: {
  custom: {
    50: '#7172bb',
    500: '#213e9d',
    950: '#000000',
  },
}
SCSS
$custom: #213e9d;
$custom-light: #7172bb;
$custom-dark: #000000;
JSON
{
  "hex": "#213e9d",
  "rgb": {
    "r": 33,
    "g": 62,
    "b": 157
  },
  "hsl": {
    "h": 225.968,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40526,
    "c": 0.15839,
    "h": 266.2
  },
  "luminance": 0.06203
}

Semantic roles & 50–950 ramp

primary
#213E9D
secondary
#C1A959
accent
#C140E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #213E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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