#212A71#212A71

#212A71 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.5% C 0.122 H 272.2°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#212A71
RGBrgb(33, 42, 113)
HSLhsl(233, 55%, 29%)
HSVhsv(233, 71%, 44%)
CMYKcmyk(70.8%, 62.8%, 0%, 55.7%)
CIE-LABlab(20.72, 21.74, -42.23)
CIE-LCHlch(20.72, 47.50, 297.24°)
OKLaboklab(32.51% 0.0047 -0.1217)
OKLCHoklch(32.51% 0.122 272.2)
XYZxyz(4.4348, 3.1711, 15.9980)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A71 #716821
analogous
#215271 #212A71 #402171
triadic
#212A71 #71212A #2A7121
tetradic
#212A71 #712152 #716821 #217140
square
#212A71 #712152 #716821 #217140
split-complementary
#212A71 #714021 #527121
monochromatic
#070918 #131842 #212A71 #2F3CA0 #4453C8

Accessibility & contrast

On white

12.85
#212A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#212A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A71
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A71#FFFFFF#000000##FFFFFF
##212A711.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212a71;
/* rgb */ color: rgb(33, 42, 113);
/* oklch */ color: oklch(32.5% 0.122 272.2);
Tailwind
colors: {
  custom: {
    50: '#68639a',
    500: '#212a71',
    950: '#000000',
  },
}
SCSS
$custom: #212a71;
$custom-light: #68639a;
$custom-dark: #000000;
JSON
{
  "hex": "#212a71",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 233.25,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32509,
    "c": 0.12181,
    "h": 272.2
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

primary
#212A71
secondary
#A59A49
accent
#CD4ADE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212A71

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

Preview Lab → · Contrast checker → · Palette generator →

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