#212496#212496

#212496 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.179 H 271.4°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#212496
RGBrgb(33, 36, 150)
HSLhsl(238, 64%, 36%)
HSVhsv(238, 78%, 59%)
CMYKcmyk(78%, 76%, 0%, 41.2%)
CIE-LABlab(22.95, 39.27, -61.85)
CIE-LCHlch(22.95, 73.27, 302.42°)
OKLaboklab(35.24% 0.0045 -0.1791)
OKLCHoklch(35.24% 0.179 271.4)
XYZxyz(6.7612, 3.7864, 29.2228)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212496 #969321
analogous
#215E96 #212496 #592196
triadic
#212496 #962124 #249621
tetradic
#212496 #96215E #969321 #219659
square
#212496 #96215E #969321 #219659
split-complementary
#212496 #965921 #5E9621
monochromatic
#0B0C32 #161864 #212496 #2C30C8 #575BDA

Accessibility & contrast

On white

11.95
#212496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#212496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212496
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212496#FFFFFF#000000##FFFFFF
##2124961.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212496;
/* rgb */ color: rgb(33, 36, 150);
/* oklch */ color: oklch(35.2% 0.179 271.4);
Tailwind
colors: {
  custom: {
    50: '#7260b6',
    500: '#212496',
    950: '#000000',
  },
}
SCSS
$custom: #212496;
$custom-light: #7260b6;
$custom-dark: #000000;
JSON
{
  "hex": "#212496",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 238.462,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35243,
    "c": 0.17913,
    "h": 271.4
  },
  "luminance": 0.03787
}

Semantic roles & 50–950 ramp

primary
#212496
secondary
#BEBB55
accent
#E341E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212496

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

Preview Lab → · Contrast checker → · Palette generator →

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