#211978#211978

#211978 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.152 H 276.0°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#211978
RGBrgb(33, 25, 120)
HSLhsl(245, 66%, 28%)
HSVhsv(245, 79%, 47%)
CMYKcmyk(72.5%, 79.2%, 0%, 52.9%)
CIE-LABlab(17.34, 35.33, -52.27)
CIE-LCHlch(17.34, 63.09, 304.06°)
OKLaboklab(30.28% 0.016 -0.1511)
OKLCHoklch(30.28% 0.152 276)
XYZxyz(4.3639, 2.3743, 17.9940)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211978 #707819
analogous
#194078 #211978 #501978
triadic
#211978 #782119 #197821
tetradic
#211978 #781940 #707819 #197850
square
#211978 #781940 #707819 #197850
split-complementary
#211978 #785019 #407819
monochromatic
#070519 #130E45 #211978 #2F24AB #4436D5

Accessibility & contrast

On white

14.24
#211978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#211978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211978
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211978#FFFFFF#000000##FFFFFF
##2119781.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #211978;
/* rgb */ color: rgb(33, 25, 120);
/* oklch */ color: oklch(30.3% 0.152 276.0);
Tailwind
colors: {
  custom: {
    50: '#6b58a0',
    500: '#211978',
    950: '#000000',
  },
}
SCSS
$custom: #211978;
$custom-light: #6b58a0;
$custom-dark: #000000;
JSON
{
  "hex": "#211978",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 245.053,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3028,
    "c": 0.15194,
    "h": 276
  },
  "luminance": 0.02375
}

Semantic roles & 50–950 ramp

primary
#211978
secondary
#A4AD40
accent
#E83FDA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #211978

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

Preview Lab → · Contrast checker → · Palette generator →

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