#212B96#212B96

#212B96 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.172 H 270.4°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#212B96
RGBrgb(33, 43, 150)
HSLhsl(235, 64%, 36%)
HSVhsv(235, 78%, 59%)
CMYKcmyk(78%, 71.3%, 0%, 41.2%)
CIE-LABlab(24.49, 35.01, -59.31)
CIE-LCHlch(24.49, 68.87, 300.55°)
OKLaboklab(36.34% 0.0012 -0.1717)
OKLCHoklch(36.34% 0.172 270.4)
XYZxyz(6.9942, 4.2523, 29.3004)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B96 #968C21
analogous
#216596 #212B96 #512196
triadic
#212B96 #96212B #2B9621
tetradic
#212B96 #962165 #968C21 #219651
square
#212B96 #962165 #968C21 #219651
split-complementary
#212B96 #965121 #659621
monochromatic
#0B0E32 #161D64 #212B96 #2C39C8 #5762DA

Accessibility & contrast

On white

11.35
#212B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#212B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B96
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B96#FFFFFF#000000##FFFFFF
##212B961.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212b96;
/* rgb */ color: rgb(33, 43, 150);
/* oklch */ color: oklch(36.3% 0.172 270.4);
Tailwind
colors: {
  custom: {
    50: '#7165b6',
    500: '#212b96',
    950: '#000000',
  },
}
SCSS
$custom: #212b96;
$custom-light: #7165b6;
$custom-dark: #000000;
JSON
{
  "hex": "#212b96",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 150
  },
  "hsl": {
    "h": 234.872,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36342,
    "c": 0.17172,
    "h": 270.4
  },
  "luminance": 0.04253
}

Semantic roles & 50–950 ramp

primary
#212B96
secondary
#BEB555
accent
#D941E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212B96

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

Preview Lab → · Contrast checker → · Palette generator →

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