#211796#211796

#211796 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.6% C 0.190 H 272.7°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#211796
RGBrgb(33, 23, 150)
HSLhsl(245, 73%, 34%)
HSVhsv(245, 85%, 59%)
CMYKcmyk(78%, 84.7%, 0%, 41.2%)
CIE-LABlab(20.59, 46.11, -65.77)
CIE-LCHlch(20.59, 80.32, 305.03°)
OKLaboklab(33.59% 0.0089 -0.1902)
OKLCHoklch(33.59% 0.19 272.7)
XYZxyz(6.4368, 3.1374, 29.1146)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211796 #8C9617
analogous
#174D96 #211796 #611796
triadic
#211796 #962117 #179621
tetradic
#211796 #96174D #8C9617 #179661
square
#211796 #96174D #8C9617 #179661
split-complementary
#211796 #966117 #4D9617
monochromatic
#0A072C #150F61 #211796 #2D1FCB #5145E2

Accessibility & contrast

On white

12.90
#211796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#211796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211796
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211796#FFFFFF#000000##FFFFFF
##2117961.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003799
Deuteranopia (green-blind)
#002B94
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #211796;
/* rgb */ color: rgb(33, 23, 150);
/* oklch */ color: oklch(33.6% 0.190 272.7);
Tailwind
colors: {
  custom: {
    50: '#7359b6',
    500: '#211796',
    950: '#000000',
  },
}
SCSS
$custom: #211796;
$custom-light: #7359b6;
$custom-dark: #000000;
JSON
{
  "hex": "#211796",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 244.724,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33587,
    "c": 0.19046,
    "h": 272.7
  },
  "luminance": 0.03138
}

Semantic roles & 50–950 ramp

primary
#211796
secondary
#B9C345
accent
#F038E2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #211796

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

Preview Lab → · Contrast checker → · Palette generator →

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