#212696#212696

#212696 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.177 H 271.2°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#212696
RGBrgb(33, 38, 150)
HSLhsl(237, 64%, 36%)
HSVhsv(237, 78%, 59%)
CMYKcmyk(78%, 74.7%, 0%, 41.2%)
CIE-LABlab(23.37, 38.09, -61.15)
CIE-LCHlch(23.37, 72.04, 301.92°)
OKLaboklab(35.54% 0.0036 -0.1771)
OKLCHoklch(35.54% 0.177 271.2)
XYZxyz(6.8235, 3.9108, 29.2435)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212696 #969121
analogous
#216096 #212696 #562196
triadic
#212696 #962126 #269621
tetradic
#212696 #962160 #969121 #219656
square
#212696 #962160 #969121 #219656
split-complementary
#212696 #965621 #609621
monochromatic
#0B0D32 #161964 #212696 #2C33C8 #575DDA

Accessibility & contrast

On white

11.78
#212696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#212696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212696
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212696#FFFFFF#000000##FFFFFF
##2126961.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212696;
/* rgb */ color: rgb(33, 38, 150);
/* oklch */ color: oklch(35.5% 0.177 271.2);
Tailwind
colors: {
  custom: {
    50: '#7161b6',
    500: '#212696',
    950: '#000000',
  },
}
SCSS
$custom: #212696;
$custom-light: #7161b6;
$custom-dark: #000000;
JSON
{
  "hex": "#212696",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 237.436,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35543,
    "c": 0.17709,
    "h": 271.2
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

primary
#212696
secondary
#BEBA55
accent
#E041E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212696

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

Preview Lab → · Contrast checker → · Palette generator →

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