#212196#212196

#212196 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.182 H 271.8°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#212196
RGBrgb(33, 33, 150)
HSLhsl(240, 64%, 36%)
HSVhsv(240, 78%, 59%)
CMYKcmyk(78%, 78%, 0%, 41.2%)
CIE-LABlab(22.35, 41.00, -62.85)
CIE-LCHlch(22.35, 75.04, 303.11°)
OKLaboklab(34.81% 0.0057 -0.1819)
OKLCHoklch(34.81% 0.182 271.8)
XYZxyz(6.6742, 3.6123, 29.1937)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212196 #969621
analogous
#215B96 #212196 #5B2196
triadic
#212196 #962121 #219621
tetradic
#212196 #96215B #969621 #21965B
square
#212196 #96215B #969621 #21965B
split-complementary
#212196 #965B21 #5B9621
monochromatic
#0B0B32 #161664 #212196 #2C2CC8 #5757DA

Accessibility & contrast

On white

12.19
#212196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#212196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212196
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212196#FFFFFF#000000##FFFFFF
##2121961.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212196;
/* rgb */ color: rgb(33, 33, 150);
/* oklch */ color: oklch(34.8% 0.182 271.8);
Tailwind
colors: {
  custom: {
    50: '#725eb6',
    500: '#212196',
    950: '#000000',
  },
}
SCSS
$custom: #212196;
$custom-light: #725eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#212196",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 240,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.34814,
    "c": 0.18204,
    "h": 271.8
  },
  "luminance": 0.03613
}

Semantic roles & 50–950 ramp

primary
#212196
secondary
#BEBE55
accent
#E741E7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #212196

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

Preview Lab → · Contrast checker → · Palette generator →

#212196 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva