#212396#212396

#212396 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.180 H 271.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#212396
RGBrgb(33, 35, 150)
HSLhsl(239, 64%, 36%)
HSVhsv(239, 78%, 59%)
CMYKcmyk(78%, 76.7%, 0%, 41.2%)
CIE-LABlab(22.75, 39.86, -62.19)
CIE-LCHlch(22.75, 73.86, 302.66°)
OKLaboklab(35.1% 0.0049 -0.18)
OKLCHoklch(35.1% 0.18 271.6)
XYZxyz(6.7314, 3.7267, 29.2128)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212396 #969421
analogous
#215D96 #212396 #592196
triadic
#212396 #962123 #239621
tetradic
#212396 #96215D #969421 #219659
square
#212396 #96215D #969421 #219659
split-complementary
#212396 #965921 #5D9621
monochromatic
#0B0C32 #161764 #212396 #2C2FC8 #575ADA

Accessibility & contrast

On white

12.03
#212396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#212396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212396
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212396#FFFFFF#000000##FFFFFF
##2123961.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.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: #212396;
/* rgb */ color: rgb(33, 35, 150);
/* oklch */ color: oklch(35.1% 0.180 271.6);
Tailwind
colors: {
  custom: {
    50: '#7260b6',
    500: '#212396',
    950: '#000000',
  },
}
SCSS
$custom: #212396;
$custom-light: #7260b6;
$custom-dark: #000000;
JSON
{
  "hex": "#212396",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 238.974,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35097,
    "c": 0.18011,
    "h": 271.6
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

primary
#212396
secondary
#BEBC55
accent
#E441E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212396

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

Preview Lab → · Contrast checker → · Palette generator →

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