#221978#221978

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

Color values

HEX#221978
RGBrgb(34, 25, 120)
HSLhsl(246, 66%, 28%)
HSVhsv(246, 79%, 47%)
CMYKcmyk(71.7%, 79.2%, 0%, 52.9%)
CIE-LABlab(17.42, 35.44, -52.14)
CIE-LCHlch(17.42, 63.04, 304.20°)
OKLaboklab(30.35% 0.0174 -0.1507)
OKLCHoklch(30.35% 0.152 276.6)
XYZxyz(4.3964, 2.3910, 17.9955)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221978 #6F7819
analogous
#193F78 #221978 #511978
triadic
#221978 #782219 #197822
tetradic
#221978 #78193F #6F7819 #197851
square
#221978 #78193F #6F7819 #197851
split-complementary
#221978 #785119 #3F7819
monochromatic
#070519 #140E45 #221978 #3024AB #4536D5

Accessibility & contrast

On white

14.21
#221978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221978
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221978#FFFFFF#000000##FFFFFF
##2219781.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #221978;
/* rgb */ color: rgb(34, 25, 120);
/* oklch */ color: oklch(30.4% 0.152 276.6);
Tailwind
colors: {
  custom: {
    50: '#6b58a0',
    500: '#221978',
    950: '#000000',
  },
}
SCSS
$custom: #221978;
$custom-light: #6b58a0;
$custom-dark: #000000;
JSON
{
  "hex": "#221978",
  "rgb": {
    "r": 34,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 245.684,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30355,
    "c": 0.15169,
    "h": 276.6
  },
  "luminance": 0.02391
}

Semantic roles & 50–950 ramp

primary
#221978
secondary
#A2AD40
accent
#E83FD8
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #221978

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

Preview Lab → · Contrast checker → · Palette generator →

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