#221478#221478

#221478 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.156 H 277.3°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#221478
RGBrgb(34, 20, 120)
HSLhsl(248, 71%, 27%)
HSVhsv(248, 83%, 47%)
CMYKcmyk(71.7%, 83.3%, 0%, 52.9%)
CIE-LABlab(16.48, 38.13, -53.68)
CIE-LCHlch(16.48, 65.84, 305.38°)
OKLaboklab(29.7% 0.02 -0.1551)
OKLCHoklch(29.7% 0.156 277.3)
XYZxyz(4.2989, 2.1961, 17.9630)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221478 #6A7814
analogous
#143878 #221478 #541478
triadic
#221478 #782214 #147822
tetradic
#221478 #781438 #6A7814 #147854
square
#221478 #781438 #6A7814 #147854
split-complementary
#221478 #785414 #387814
monochromatic
#07041A #130B44 #221478 #311DAC #442BDC

Accessibility & contrast

On white

14.59
#221478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#221478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221478
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221478#FFFFFF#000000##FFFFFF
##2214781.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002576
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #221478;
/* rgb */ color: rgb(34, 20, 120);
/* oklch */ color: oklch(29.7% 0.156 277.3);
Tailwind
colors: {
  custom: {
    50: '#6c55a0',
    500: '#221478',
    950: '#000000',
  },
}
SCSS
$custom: #221478;
$custom-light: #6c55a0;
$custom-dark: #000000;
JSON
{
  "hex": "#221478",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 248.4,
    "s": 71.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29703,
    "c": 0.1564,
    "h": 277.3
  },
  "luminance": 0.02196
}

Semantic roles & 50–950 ramp

primary
#221478
secondary
#9EAE3A
accent
#EE3AD5
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #221478

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

Preview Lab → · Contrast checker → · Palette generator →

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