#212B71#212B71

#212B71 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.120 H 271.8°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#212B71
RGBrgb(33, 43, 113)
HSLhsl(233, 55%, 29%)
HSVhsv(233, 71%, 44%)
CMYKcmyk(70.8%, 61.9%, 0%, 55.7%)
CIE-LABlab(20.99, 21.04, -41.78)
CIE-LCHlch(20.99, 46.78, 296.73°)
OKLaboklab(32.71% 0.0038 -0.1204)
OKLCHoklch(32.71% 0.12 271.8)
XYZxyz(4.4707, 3.2429, 16.0099)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B71 #716721
analogous
#215371 #212B71 #3F2171
triadic
#212B71 #71212B #2B7121
tetradic
#212B71 #712153 #716721 #21713F
square
#212B71 #712153 #716721 #21713F
split-complementary
#212B71 #713F21 #537121
monochromatic
#070918 #131942 #212B71 #2F3DA0 #4455C8

Accessibility & contrast

On white

12.74
#212B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#212B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B71
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B71#FFFFFF#000000##FFFFFF
##212B711.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212b71;
/* rgb */ color: rgb(33, 43, 113);
/* oklch */ color: oklch(32.7% 0.120 271.8);
Tailwind
colors: {
  custom: {
    50: '#67649a',
    500: '#212b71',
    950: '#000000',
  },
}
SCSS
$custom: #212b71;
$custom-light: #67649a;
$custom-dark: #000000;
JSON
{
  "hex": "#212b71",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 232.5,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32713,
    "c": 0.12045,
    "h": 271.8
  },
  "luminance": 0.03243
}

Semantic roles & 50–950 ramp

primary
#212B71
secondary
#A59949
accent
#CC4ADE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212B71

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

Preview Lab → · Contrast checker → · Palette generator →

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