#212096#212096

#212096 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.183 H 271.9°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#212096
RGBrgb(33, 32, 150)
HSLhsl(241, 65%, 36%)
HSVhsv(241, 79%, 59%)
CMYKcmyk(78%, 78.7%, 0%, 41.2%)
CIE-LABlab(22.15, 41.55, -63.17)
CIE-LCHlch(22.15, 75.61, 303.33°)
OKLaboklab(34.68% 0.0061 -0.1829)
OKLCHoklch(34.68% 0.183 271.9)
XYZxyz(6.6469, 3.5576, 29.1846)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212096 #959620
analogous
#205A96 #212096 #5C2096
triadic
#212096 #962120 #209621
tetradic
#212096 #96205A #959620 #20965C
square
#212096 #96205A #959620 #20965C
split-complementary
#212096 #965C20 #5A9620
monochromatic
#0B0A31 #161564 #212096 #2C2BC8 #5756DB

Accessibility & contrast

On white

12.27
#212096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#212096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212096
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212096#FFFFFF#000000##FFFFFF
##2120961.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.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: #212096;
/* rgb */ color: rgb(33, 32, 150);
/* oklch */ color: oklch(34.7% 0.183 271.9);
Tailwind
colors: {
  custom: {
    50: '#725eb6',
    500: '#212096',
    950: '#000000',
  },
}
SCSS
$custom: #212096;
$custom-light: #725eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#212096",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 240.508,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34677,
    "c": 0.18297,
    "h": 271.9
  },
  "luminance": 0.03558
}

Semantic roles & 50–950 ramp

primary
#212096
secondary
#BEBE53
accent
#E840E6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #212096

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

Preview Lab → · Contrast checker → · Palette generator →

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