#211878#211878

#211878 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.153 H 276.2°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#211878
RGBrgb(33, 24, 120)
HSLhsl(246, 67%, 28%)
HSVhsv(246, 80%, 47%)
CMYKcmyk(72.5%, 80%, 0%, 52.9%)
CIE-LABlab(17.14, 35.90, -52.60)
CIE-LCHlch(17.14, 63.68, 304.31°)
OKLaboklab(30.14% 0.0165 -0.152)
OKLCHoklch(30.14% 0.153 276.2)
XYZxyz(4.3429, 2.3323, 17.9870)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211878 #6F7818
analogous
#183F78 #211878 #511878
triadic
#211878 #782118 #187821
tetradic
#211878 #78183F #6F7818 #187851
square
#211878 #78183F #6F7818 #187851
split-complementary
#211878 #785118 #3F7818
monochromatic
#07051A #130E45 #211878 #2F22AB #4334D6

Accessibility & contrast

On white

14.32
#211878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#211878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211878
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211878#FFFFFF#000000##FFFFFF
##2118781.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002676
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #211878;
/* rgb */ color: rgb(33, 24, 120);
/* oklch */ color: oklch(30.1% 0.153 276.2);
Tailwind
colors: {
  custom: {
    50: '#6b57a0',
    500: '#211878',
    950: '#000000',
  },
}
SCSS
$custom: #211878;
$custom-light: #6b57a0;
$custom-dark: #000000;
JSON
{
  "hex": "#211878",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 245.625,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30141,
    "c": 0.15293,
    "h": 276.2
  },
  "luminance": 0.02333
}

Semantic roles & 50–950 ramp

primary
#211878
secondary
#A3AD3F
accent
#EA3EDA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #211878

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

Preview Lab → · Contrast checker → · Palette generator →

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