#212296#212296

#212296 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.181 H 271.7°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#212296
RGBrgb(33, 34, 150)
HSLhsl(239, 64%, 36%)
HSVhsv(239, 78%, 59%)
CMYKcmyk(78%, 77.3%, 0%, 41.2%)
CIE-LABlab(22.54, 40.43, -62.52)
CIE-LCHlch(22.54, 74.46, 302.89°)
OKLaboklab(34.95% 0.0053 -0.181)
OKLCHoklch(34.95% 0.181 271.7)
XYZxyz(6.7024, 3.6687, 29.2031)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212296 #969521
analogous
#215C96 #212296 #5A2196
triadic
#212296 #962122 #229621
tetradic
#212296 #96215C #969521 #21965A
square
#212296 #96215C #969521 #21965A
split-complementary
#212296 #965A21 #5C9621
monochromatic
#0B0B32 #161764 #212296 #2C2DC8 #5758DA

Accessibility & contrast

On white

12.11
#212296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#212296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212296
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212296#FFFFFF#000000##FFFFFF
##2122961.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212296;
/* rgb */ color: rgb(33, 34, 150);
/* oklch */ color: oklch(35.0% 0.181 271.7);
Tailwind
colors: {
  custom: {
    50: '#725fb6',
    500: '#212296',
    950: '#000000',
  },
}
SCSS
$custom: #212296;
$custom-light: #725fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#212296",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 239.487,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.34954,
    "c": 0.18109,
    "h": 271.7
  },
  "luminance": 0.03669
}

Semantic roles & 50–950 ramp

primary
#212296
secondary
#BEBD55
accent
#E641E7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212296

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

Preview Lab → · Contrast checker → · Palette generator →

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