#212796#212796

#212796 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.176 H 271.0°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#212796
RGBrgb(33, 39, 150)
HSLhsl(237, 64%, 36%)
HSVhsv(237, 78%, 59%)
CMYKcmyk(78%, 74%, 0%, 41.2%)
CIE-LABlab(23.59, 37.49, -60.79)
CIE-LCHlch(23.59, 71.42, 301.66°)
OKLaboklab(35.7% 0.0032 -0.176)
OKLCHoklch(35.7% 0.176 271)
XYZxyz(6.8559, 3.9756, 29.2543)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212796 #969021
analogous
#216196 #212796 #552196
triadic
#212796 #962127 #279621
tetradic
#212796 #962161 #969021 #219655
square
#212796 #962161 #969021 #219655
split-complementary
#212796 #965521 #619621
monochromatic
#0B0D32 #161A64 #212796 #2C34C8 #575EDA

Accessibility & contrast

On white

11.70
#212796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#212796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212796
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212796#FFFFFF#000000##FFFFFF
##2127961.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212796;
/* rgb */ color: rgb(33, 39, 150);
/* oklch */ color: oklch(35.7% 0.176 271.0);
Tailwind
colors: {
  custom: {
    50: '#7162b6',
    500: '#212796',
    950: '#000000',
  },
}
SCSS
$custom: #212796;
$custom-light: #7162b6;
$custom-dark: #000000;
JSON
{
  "hex": "#212796",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 236.923,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35697,
    "c": 0.17605,
    "h": 271
  },
  "luminance": 0.03976
}

Semantic roles & 50–950 ramp

primary
#212796
secondary
#BEB955
accent
#DE41E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212796

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

Preview Lab → · Contrast checker → · Palette generator →

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