#212E98#212E98

#212E98 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.171 H 269.8°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#212E98
RGBrgb(33, 46, 152)
HSLhsl(233, 64%, 36%)
HSVhsv(233, 78%, 60%)
CMYKcmyk(78.3%, 69.7%, 0%, 40.4%)
CIE-LABlab(25.39, 33.83, -59.05)
CIE-LCHlch(25.39, 68.06, 299.80°)
OKLaboklab(37.06% -0.0006 -0.171)
OKLCHoklch(37.06% 0.171 269.8)
XYZxyz(7.2697, 4.5435, 30.1935)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E98 #988B21
analogous
#216A98 #212E98 #502198
triadic
#212E98 #98212E #2E9821
tetradic
#212E98 #98216A #988B21 #219850
square
#212E98 #98216A #988B21 #219850
split-complementary
#212E98 #985021 #6A9821
monochromatic
#0B1033 #161F66 #212E98 #2C3DCA #5967DB

Accessibility & contrast

On white

11.00
#212E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#212E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E98
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E98#FFFFFF#000000##FFFFFF
##212E981.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #212e98;
/* rgb */ color: rgb(33, 46, 152);
/* oklch */ color: oklch(37.1% 0.171 269.8);
Tailwind
colors: {
  custom: {
    50: '#7167b7',
    500: '#212e98',
    950: '#000000',
  },
}
SCSS
$custom: #212e98;
$custom-light: #7167b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212e98",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 233.445,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37056,
    "c": 0.17096,
    "h": 269.8
  },
  "luminance": 0.04544
}

Semantic roles & 50–950 ramp

primary
#212E98
secondary
#BFB356
accent
#D540E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212E98

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

Preview Lab → · Contrast checker → · Palette generator →

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