#212A72#212A72

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

Color values

HEX#212A72
RGBrgb(33, 42, 114)
HSLhsl(233, 55%, 29%)
HSVhsv(233, 71%, 45%)
CMYKcmyk(71.1%, 63.2%, 0%, 55.3%)
CIE-LABlab(20.80, 22.13, -42.73)
CIE-LCHlch(20.80, 48.12, 297.38°)
OKLaboklab(32.6% 0.0046 -0.1232)
OKLCHoklch(32.6% 0.123 272.2)
XYZxyz(4.4914, 3.1937, 16.2961)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A72 #726921
analogous
#215372 #212A72 #412172
triadic
#212A72 #72212A #2A7221
tetradic
#212A72 #722153 #726921 #217241
square
#212A72 #722153 #726921 #217241
split-complementary
#212A72 #724121 #537221
monochromatic
#070918 #131943 #212A72 #2F3BA1 #4453C9

Accessibility & contrast

On white

12.81
#212A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#212A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A72
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A72#FFFFFF#000000##FFFFFF
##212A721.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212a72;
/* rgb */ color: rgb(33, 42, 114);
/* oklch */ color: oklch(32.6% 0.123 272.2);
Tailwind
colors: {
  custom: {
    50: '#68639b',
    500: '#212a72',
    950: '#000000',
  },
}
SCSS
$custom: #212a72;
$custom-light: #68639b;
$custom-dark: #000000;
JSON
{
  "hex": "#212a72",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 233.333,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32601,
    "c": 0.12328,
    "h": 272.2
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#212A72
secondary
#A59B49
accent
#CE49DE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212A72

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

Preview Lab → · Contrast checker → · Palette generator →

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