#212C97#212C97

#212C97 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.172 H 270.2°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#212C97
RGBrgb(33, 44, 151)
HSLhsl(234, 64%, 36%)
HSVhsv(234, 78%, 59%)
CMYKcmyk(78.1%, 70.9%, 0%, 40.8%)
CIE-LABlab(24.82, 34.74, -59.38)
CIE-LCHlch(24.82, 68.79, 300.33°)
OKLaboklab(36.61% 0.0006 -0.1719)
OKLCHoklch(36.61% 0.172 270.2)
XYZxyz(7.1119, 4.3583, 29.7386)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C97 #978C21
analogous
#216797 #212C97 #512197
triadic
#212C97 #97212C #2C9721
tetradic
#212C97 #972167 #978C21 #219751
square
#212C97 #972167 #978C21 #219751
split-complementary
#212C97 #975121 #679721
monochromatic
#0B0F33 #161D65 #212C97 #2C3BC9 #5864DA

Accessibility & contrast

On white

11.22
#212C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#212C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C97
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C97#FFFFFF#000000##FFFFFF
##212C971.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212c97;
/* rgb */ color: rgb(33, 44, 151);
/* oklch */ color: oklch(36.6% 0.172 270.2);
Tailwind
colors: {
  custom: {
    50: '#7165b7',
    500: '#212c97',
    950: '#000000',
  },
}
SCSS
$custom: #212c97;
$custom-light: #7165b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212c97",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 234.407,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36613,
    "c": 0.17191,
    "h": 270.2
  },
  "luminance": 0.04359
}

Semantic roles & 50–950 ramp

primary
#212C97
secondary
#BEB555
accent
#D841E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212C97

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

Preview Lab → · Contrast checker → · Palette generator →

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