#212E9E#212E9E

#212E9E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.179 H 269.6°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#212E9E
RGBrgb(33, 46, 158)
HSLhsl(234, 65%, 37%)
HSVhsv(234, 79%, 62%)
CMYKcmyk(79.1%, 70.9%, 0%, 38%)
CIE-LABlab(26.00, 36.02, -61.73)
CIE-LCHlch(26.00, 71.47, 300.26°)
OKLaboklab(37.67% -0.0012 -0.1788)
OKLCHoklch(37.67% 0.179 269.6)
XYZxyz(7.7736, 4.7451, 32.8473)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E9E #9E9121
analogous
#216D9E #212E9E #53219E
triadic
#212E9E #9E212E #2E9E21
tetradic
#212E9E #9E216D #9E9121 #219E53
square
#212E9E #9E216D #9E9121 #219E53
split-complementary
#212E9E #9E5321 #6D9E21
monochromatic
#0C1139 #161F6B #212E9E #2C3DD1 #5C6ADD

Accessibility & contrast

On white

10.77
#212E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#212E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E9E
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E9E#FFFFFF#000000##FFFFFF
##212E9E1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00379C
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #212e9e;
/* rgb */ color: rgb(33, 46, 158);
/* oklch */ color: oklch(37.7% 0.179 269.6);
Tailwind
colors: {
  custom: {
    50: '#7367bc',
    500: '#212e9e',
    950: '#000000',
  },
}
SCSS
$custom: #212e9e;
$custom-light: #7367bc;
$custom-dark: #000000;
JSON
{
  "hex": "#212e9e",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 233.76,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37675,
    "c": 0.17876,
    "h": 269.6
  },
  "luminance": 0.04746
}

Semantic roles & 50–950 ramp

primary
#212E9E
secondary
#C1B759
accent
#D73FE8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #212E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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