#212896#212896

#212896 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.175 H 270.9°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#212896
RGBrgb(33, 40, 150)
HSLhsl(236, 64%, 36%)
HSVhsv(236, 78%, 59%)
CMYKcmyk(78%, 73.3%, 0%, 41.2%)
CIE-LABlab(23.81, 36.87, -60.43)
CIE-LCHlch(23.81, 70.79, 301.39°)
OKLaboklab(35.85% 0.0027 -0.175)
OKLCHoklch(35.85% 0.175 270.9)
XYZxyz(6.8891, 4.0422, 29.2654)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212896 #968F21
analogous
#216296 #212896 #542196
triadic
#212896 #962128 #289621
tetradic
#212896 #962162 #968F21 #219654
square
#212896 #962162 #968F21 #219654
split-complementary
#212896 #965421 #629621
monochromatic
#0B0D32 #161B64 #212896 #2C35C8 #575FDA

Accessibility & contrast

On white

11.61
#212896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#212896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212896
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212896#FFFFFF#000000##FFFFFF
##2128961.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212896;
/* rgb */ color: rgb(33, 40, 150);
/* oklch */ color: oklch(35.9% 0.175 270.9);
Tailwind
colors: {
  custom: {
    50: '#7163b6',
    500: '#212896',
    950: '#000000',
  },
}
SCSS
$custom: #212896;
$custom-light: #7163b6;
$custom-dark: #000000;
JSON
{
  "hex": "#212896",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 236.41,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35855,
    "c": 0.17499,
    "h": 270.9
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#212896
secondary
#BEB855
accent
#DD41E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212896

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

Preview Lab → · Contrast checker → · Palette generator →

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