#213E9E#213E9E

#213E9E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.160 H 266.3°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#213E9E
RGBrgb(33, 62, 158)
HSLhsl(226, 65%, 37%)
HSVhsv(226, 79%, 62%)
CMYKcmyk(79.1%, 60.8%, 0%, 38%)
CIE-LABlab(30.00, 25.48, -55.16)
CIE-LCHlch(30.00, 60.76, 294.80°)
OKLaboklab(40.62% -0.0103 -0.1594)
OKLCHoklch(40.62% 0.16 266.3)
XYZxyz(8.5192, 6.2362, 33.0958)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213E9E #9E8121
analogous
#217D9E #213E9E #43219E
triadic
#213E9E #9E213E #3E9E21
tetradic
#213E9E #9E217D #9E8121 #219E43
square
#213E9E #9E217D #9E8121 #219E43
split-complementary
#213E9E #9E4321 #7D9E21
monochromatic
#0C1639 #162A6B #213E9E #2C52D1 #5C7ADD

Accessibility & contrast

On white

9.34
#213E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#213E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213E9E
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213E9E#FFFFFF#000000##FFFFFF
##213E9E1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #213e9e;
/* rgb */ color: rgb(33, 62, 158);
/* oklch */ color: oklch(40.6% 0.160 266.3);
Tailwind
colors: {
  custom: {
    50: '#7172bb',
    500: '#213e9e',
    950: '#000000',
  },
}
SCSS
$custom: #213e9e;
$custom-light: #7172bb;
$custom-dark: #000000;
JSON
{
  "hex": "#213e9e",
  "rgb": {
    "r": 33,
    "g": 62,
    "b": 158
  },
  "hsl": {
    "h": 226.08,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40615,
    "c": 0.15975,
    "h": 266.3
  },
  "luminance": 0.06237
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #213E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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