#212B79#212B79

#212B79 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.132 H 271.6°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#212B79
RGBrgb(33, 43, 121)
HSLhsl(233, 57%, 30%)
HSVhsv(233, 73%, 47%)
CMYKcmyk(72.7%, 64.5%, 0%, 52.5%)
CIE-LABlab(21.69, 24.14, -45.76)
CIE-LCHlch(21.69, 51.73, 297.81°)
OKLaboklab(33.45% 0.0036 -0.1321)
OKLCHoklch(33.45% 0.132 271.6)
XYZxyz(4.9411, 3.4311, 18.4873)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B79 #796F21
analogous
#215779 #212B79 #432179
triadic
#212B79 #79212B #2B7921
tetradic
#212B79 #792157 #796F21 #217943
square
#212B79 #792157 #796F21 #217943
split-complementary
#212B79 #794321 #577921
monochromatic
#070919 #141A49 #212B79 #2E3CA9 #4757CD

Accessibility & contrast

On white

12.45
#212B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#212B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B79
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B79#FFFFFF#000000##FFFFFF
##212B791.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212b79;
/* rgb */ color: rgb(33, 43, 121);
/* oklch */ color: oklch(33.5% 0.132 271.6);
Tailwind
colors: {
  custom: {
    50: '#6964a0',
    500: '#212b79',
    950: '#000000',
  },
}
SCSS
$custom: #212b79;
$custom-light: #6964a0;
$custom-dark: #000000;
JSON
{
  "hex": "#212b79",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 121
  },
  "hsl": {
    "h": 233.182,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33452,
    "c": 0.13212,
    "h": 271.6
  },
  "luminance": 0.03432
}

Semantic roles & 50–950 ramp

primary
#212B79
secondary
#ACA14A
accent
#CF47E0
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #212B79

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

Preview Lab → · Contrast checker → · Palette generator →

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