#212B7B#212B7B

#212B7B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.135 H 271.5°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#212B7B
RGBrgb(33, 43, 123)
HSLhsl(233, 58%, 31%)
HSVhsv(233, 73%, 48%)
CMYKcmyk(73.2%, 65%, 0%, 51.8%)
CIE-LABlab(21.87, 24.91, -46.74)
CIE-LCHlch(21.87, 52.96, 298.05°)
OKLaboklab(33.64% 0.0035 -0.1349)
OKLCHoklch(33.64% 0.135 271.5)
XYZxyz(5.0650, 3.4806, 19.1400)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B7B #7B7121
analogous
#21587B #212B7B #44217B
triadic
#212B7B #7B212B #2B7B21
tetradic
#212B7B #7B2158 #7B7121 #217B44
square
#212B7B #7B2158 #7B7121 #217B44
split-complementary
#212B7B #7B4421 #587B21
monochromatic
#07091A #141A4B #212B7B #2E3CAB #4857CE

Accessibility & contrast

On white

12.38
#212B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#212B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B7B
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B7B#FFFFFF#000000##FFFFFF
##212B7B1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212b7b;
/* rgb */ color: rgb(33, 43, 123);
/* oklch */ color: oklch(33.6% 0.135 271.5);
Tailwind
colors: {
  custom: {
    50: '#6a64a2',
    500: '#212b7b',
    950: '#000000',
  },
}
SCSS
$custom: #212b7b;
$custom-light: #6a64a2;
$custom-dark: #000000;
JSON
{
  "hex": "#212b7b",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 123
  },
  "hsl": {
    "h": 233.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33641,
    "c": 0.13498,
    "h": 271.5
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#212B7B
secondary
#AEA34A
accent
#D047E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #212B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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