#212A96#212A96

#212A96 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.173 H 270.6°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#212A96
RGBrgb(33, 42, 150)
HSLhsl(235, 64%, 36%)
HSVhsv(235, 78%, 59%)
CMYKcmyk(78%, 72%, 0%, 41.2%)
CIE-LABlab(24.26, 35.63, -59.69)
CIE-LCHlch(24.26, 69.52, 300.84°)
OKLaboklab(36.18% 0.0017 -0.1728)
OKLCHoklch(36.18% 0.173 270.6)
XYZxyz(6.9583, 4.1805, 29.2884)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A96 #968D21
analogous
#216496 #212A96 #522196
triadic
#212A96 #96212A #2A9621
tetradic
#212A96 #962164 #968D21 #219652
square
#212A96 #962164 #968D21 #219652
split-complementary
#212A96 #965221 #649621
monochromatic
#0B0E32 #161C64 #212A96 #2C38C8 #5761DA

Accessibility & contrast

On white

11.44
#212A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#212A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A96
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A96#FFFFFF#000000##FFFFFF
##212A961.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #212a96;
/* rgb */ color: rgb(33, 42, 150);
/* oklch */ color: oklch(36.2% 0.173 270.6);
Tailwind
colors: {
  custom: {
    50: '#7164b6',
    500: '#212a96',
    950: '#000000',
  },
}
SCSS
$custom: #212a96;
$custom-light: #7164b6;
$custom-dark: #000000;
JSON
{
  "hex": "#212a96",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 235.385,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36177,
    "c": 0.17283,
    "h": 270.6
  },
  "luminance": 0.04181
}

Semantic roles & 50–950 ramp

primary
#212A96
secondary
#BEB655
accent
#DA41E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212A96

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

Preview Lab → · Contrast checker → · Palette generator →

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