#213E9F#213E9F

#213E9F is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.161 H 266.3°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#213E9F
RGBrgb(33, 62, 159)
HSLhsl(226, 66%, 38%)
HSVhsv(226, 79%, 62%)
CMYKcmyk(79.2%, 61%, 0%, 37.6%)
CIE-LABlab(30.09, 25.87, -55.63)
CIE-LCHlch(30.09, 61.35, 294.94°)
OKLaboklab(40.71% -0.0103 -0.1608)
OKLCHoklch(40.71% 0.161 266.3)
XYZxyz(8.6056, 6.2708, 33.5510)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213E9F #9F8221
analogous
#217D9F #213E9F #43219F
triadic
#213E9F #9F213E #3E9F21
tetradic
#213E9F #9F217D #9F8221 #219F43
square
#213E9F #9F217D #9F8221 #219F43
split-complementary
#213E9F #9F4321 #7D9F21
monochromatic
#0C163A #162A6C #213E9F #2C52D2 #5D7BDD

Accessibility & contrast

On white

9.32
#213E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #213E9F
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213E9F#FFFFFF#000000##FFFFFF
##213E9F1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #213e9f;
/* rgb */ color: rgb(33, 62, 159);
/* oklch */ color: oklch(40.7% 0.161 266.3);
Tailwind
colors: {
  custom: {
    50: '#7172bc',
    500: '#213e9f',
    950: '#000000',
  },
}
SCSS
$custom: #213e9f;
$custom-light: #7172bc;
$custom-dark: #000000;
JSON
{
  "hex": "#213e9f",
  "rgb": {
    "r": 33,
    "g": 62,
    "b": 159
  },
  "hsl": {
    "h": 226.19,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40705,
    "c": 0.16112,
    "h": 266.3
  },
  "luminance": 0.06272
}

Semantic roles & 50–950 ramp

primary
#213E9F
secondary
#C2AA5A
accent
#C23FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #213E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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