#212C96#212C96

#212C96 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.171 H 270.2°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#212C96
RGBrgb(33, 44, 150)
HSLhsl(234, 64%, 36%)
HSVhsv(234, 78%, 59%)
CMYKcmyk(78%, 70.7%, 0%, 41.2%)
CIE-LABlab(24.72, 34.37, -58.93)
CIE-LCHlch(24.72, 68.22, 300.25°)
OKLaboklab(36.51% 0.0007 -0.1706)
OKLCHoklch(36.51% 0.171 270.2)
XYZxyz(7.0310, 4.3259, 29.3127)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C96 #968B21
analogous
#216696 #212C96 #502196
triadic
#212C96 #96212C #2C9621
tetradic
#212C96 #962166 #968B21 #219650
square
#212C96 #962166 #968B21 #219650
split-complementary
#212C96 #965021 #669621
monochromatic
#0B0F32 #161D64 #212C96 #2C3BC8 #5764DA

Accessibility & contrast

On white

11.26
#212C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212C96
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C96#FFFFFF#000000##FFFFFF
##212C961.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212c96;
/* rgb */ color: rgb(33, 44, 150);
/* oklch */ color: oklch(36.5% 0.171 270.2);
Tailwind
colors: {
  custom: {
    50: '#7165b6',
    500: '#212c96',
    950: '#000000',
  },
}
SCSS
$custom: #212c96;
$custom-light: #7165b6;
$custom-dark: #000000;
JSON
{
  "hex": "#212c96",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 150
  },
  "hsl": {
    "h": 234.359,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3651,
    "c": 0.1706,
    "h": 270.2
  },
  "luminance": 0.04327
}

Semantic roles & 50–950 ramp

primary
#212C96
secondary
#BEB455
accent
#D741E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212C96

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

Preview Lab → · Contrast checker → · Palette generator →

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