#212B76#212B76

#212B76 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.2% C 0.128 H 271.7°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#212B76
RGBrgb(33, 43, 118)
HSLhsl(233, 56%, 30%)
HSVhsv(233, 72%, 46%)
CMYKcmyk(72%, 63.6%, 0%, 53.7%)
CIE-LABlab(21.43, 22.98, -44.28)
CIE-LCHlch(21.43, 49.89, 297.43°)
OKLaboklab(33.17% 0.0037 -0.1277)
OKLCHoklch(33.17% 0.128 271.7)
XYZxyz(4.7600, 3.3586, 17.5335)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B76 #766C21
analogous
#215676 #212B76 #422176
triadic
#212B76 #76212B #2B7621
tetradic
#212B76 #762156 #766C21 #217642
square
#212B76 #762156 #766C21 #217642
split-complementary
#212B76 #764221 #567621
monochromatic
#070918 #141A46 #212B76 #2E3CA6 #4656CB

Accessibility & contrast

On white

12.56
#212B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#212B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B76
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B76#FFFFFF#000000##FFFFFF
##212B761.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212b76;
/* rgb */ color: rgb(33, 43, 118);
/* oklch */ color: oklch(33.2% 0.128 271.7);
Tailwind
colors: {
  custom: {
    50: '#69649e',
    500: '#212b76',
    950: '#000000',
  },
}
SCSS
$custom: #212b76;
$custom-light: #69649e;
$custom-dark: #000000;
JSON
{
  "hex": "#212b76",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 118
  },
  "hsl": {
    "h": 232.941,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33171,
    "c": 0.12778,
    "h": 271.7
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#212B76
secondary
#A99E4A
accent
#CE48E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212B76

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

Preview Lab → · Contrast checker → · Palette generator →

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