#212596#212596

#212596 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.178 H 271.3°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#212596
RGBrgb(33, 37, 150)
HSLhsl(238, 64%, 36%)
HSVhsv(238, 78%, 59%)
CMYKcmyk(78%, 75.3%, 0%, 41.2%)
CIE-LABlab(23.16, 38.69, -61.50)
CIE-LCHlch(23.16, 72.66, 302.17°)
OKLaboklab(35.39% 0.004 -0.1781)
OKLCHoklch(35.39% 0.178 271.3)
XYZxyz(6.7919, 3.8477, 29.2330)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212596 #969221
analogous
#215F96 #212596 #572196
triadic
#212596 #962125 #259621
tetradic
#212596 #96215F #969221 #219657
square
#212596 #96215F #969221 #219657
split-complementary
#212596 #965721 #5F9621
monochromatic
#0B0C32 #161964 #212596 #2C31C8 #575CDA

Accessibility & contrast

On white

11.87
#212596 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#212596 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212596
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212596#FFFFFF#000000##FFFFFF
##2125961.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212596;
/* rgb */ color: rgb(33, 37, 150);
/* oklch */ color: oklch(35.4% 0.178 271.3);
Tailwind
colors: {
  custom: {
    50: '#7161b6',
    500: '#212596',
    950: '#000000',
  },
}
SCSS
$custom: #212596;
$custom-light: #7161b6;
$custom-dark: #000000;
JSON
{
  "hex": "#212596",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 150
  },
  "hsl": {
    "h": 237.949,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35391,
    "c": 0.17812,
    "h": 271.3
  },
  "luminance": 0.03848
}

Semantic roles & 50–950 ramp

primary
#212596
secondary
#BEBA55
accent
#E141E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212596

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

Preview Lab → · Contrast checker → · Palette generator →

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