#212E9B#212E9B

#212E9B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.175 H 269.7°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#212E9B
RGBrgb(33, 46, 155)
HSLhsl(234, 65%, 37%)
HSVhsv(234, 79%, 61%)
CMYKcmyk(78.7%, 70.3%, 0%, 39.2%)
CIE-LABlab(25.69, 34.93, -60.40)
CIE-LCHlch(25.69, 69.77, 300.04°)
OKLaboklab(37.36% -0.0009 -0.1749)
OKLCHoklch(37.36% 0.175 269.7)
XYZxyz(7.5186, 4.6430, 31.5039)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E9B #9B8E21
analogous
#216B9B #212E9B #51219B
triadic
#212E9B #9B212E #2E9B21
tetradic
#212E9B #9B216B #9B8E21 #219B51
square
#212E9B #9B216B #9B8E21 #219B51
split-complementary
#212E9B #9B5121 #6B9B21
monochromatic
#0C1036 #161F69 #212E9B #2C3DCD #5A68DC

Accessibility & contrast

On white

10.89
#212E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#212E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E9B
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E9B#FFFFFF#000000##FFFFFF
##212E9B1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003799
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #212e9b;
/* rgb */ color: rgb(33, 46, 155);
/* oklch */ color: oklch(37.4% 0.175 269.7);
Tailwind
colors: {
  custom: {
    50: '#7267ba',
    500: '#212e9b',
    950: '#000000',
  },
}
SCSS
$custom: #212e9b;
$custom-light: #7267ba;
$custom-dark: #000000;
JSON
{
  "hex": "#212e9b",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 233.607,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37364,
    "c": 0.17487,
    "h": 269.7
  },
  "luminance": 0.04644
}

Semantic roles & 50–950 ramp

primary
#212E9B
secondary
#C0B558
accent
#D640E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #212E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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