#221878#221878

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

Color values

HEX#221878
RGBrgb(34, 24, 120)
HSLhsl(246, 67%, 28%)
HSVhsv(246, 80%, 47%)
CMYKcmyk(71.7%, 80%, 0%, 52.9%)
CIE-LABlab(17.22, 36.00, -52.46)
CIE-LCHlch(17.22, 63.63, 304.46°)
OKLaboklab(30.22% 0.018 -0.1516)
OKLCHoklch(30.22% 0.153 276.8)
XYZxyz(4.3754, 2.3490, 17.9885)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221878 #6E7818
analogous
#183E78 #221878 #521878
triadic
#221878 #782218 #187822
tetradic
#221878 #78183E #6E7818 #187852
square
#221878 #78183E #6E7818 #187852
split-complementary
#221878 #785218 #3E7818
monochromatic
#07051A #140E45 #221878 #3022AB #4534D6

Accessibility & contrast

On white

14.29
#221878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221878
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221878#FFFFFF#000000##FFFFFF
##2218781.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.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: #221878;
/* rgb */ color: rgb(34, 24, 120);
/* oklch */ color: oklch(30.2% 0.153 276.8);
Tailwind
colors: {
  custom: {
    50: '#6b57a0',
    500: '#221878',
    950: '#000000',
  },
}
SCSS
$custom: #221878;
$custom-light: #6b57a0;
$custom-dark: #000000;
JSON
{
  "hex": "#221878",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 246.25,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30217,
    "c": 0.15269,
    "h": 276.8
  },
  "luminance": 0.02349
}

Semantic roles & 50–950 ramp

primary
#221878
secondary
#A1AD3F
accent
#EA3ED8
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #221878

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

Preview Lab → · Contrast checker → · Palette generator →

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