#212996#212996

#212996 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.174 H 270.7°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#212996
RGBrgb(33, 41, 150)
HSLhsl(236, 64%, 36%)
HSVhsv(236, 78%, 59%)
CMYKcmyk(78%, 72.7%, 0%, 41.2%)
CIE-LABlab(24.03, 36.26, -60.06)
CIE-LCHlch(24.03, 70.16, 301.12°)
OKLaboklab(36.01% 0.0022 -0.1739)
OKLCHoklch(36.01% 0.174 270.7)
XYZxyz(6.9233, 4.1105, 29.2768)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212996 #968E21
analogous
#216396 #212996 #532196
triadic
#212996 #962129 #299621
tetradic
#212996 #962163 #968E21 #219653
square
#212996 #962163 #968E21 #219653
split-complementary
#212996 #965321 #639621
monochromatic
#0B0E32 #161B64 #212996 #2C37C8 #5760DA

Accessibility & contrast

On white

11.52
#212996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#212996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212996
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212996#FFFFFF#000000##FFFFFF
##2129961.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212996;
/* rgb */ color: rgb(33, 41, 150);
/* oklch */ color: oklch(36.0% 0.174 270.7);
Tailwind
colors: {
  custom: {
    50: '#7163b6',
    500: '#212996',
    950: '#000000',
  },
}
SCSS
$custom: #212996;
$custom-light: #7163b6;
$custom-dark: #000000;
JSON
{
  "hex": "#212996",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 150
  },
  "hsl": {
    "h": 235.897,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36014,
    "c": 0.17391,
    "h": 270.7
  },
  "luminance": 0.04111
}

Semantic roles & 50–950 ramp

primary
#212996
secondary
#BEB755
accent
#DC41E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212996

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

Preview Lab → · Contrast checker → · Palette generator →

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