#221582#221582

#221582 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.168 H 275.7°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#221582
RGBrgb(34, 21, 130)
HSLhsl(247, 72%, 30%)
HSVhsv(247, 84%, 51%)
CMYKcmyk(73.8%, 83.8%, 0%, 49%)
CIE-LABlab(17.86, 40.83, -57.78)
CIE-LCHlch(17.86, 70.75, 305.25°)
OKLaboklab(31.01% 0.0166 -0.167)
OKLCHoklch(31.01% 0.168 275.7)
XYZxyz(4.9558, 2.4876, 21.3338)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221582 #758215
analogous
#153F82 #221582 #591582
triadic
#221582 #822215 #158222
tetradic
#221582 #82153F #758215 #158259
square
#221582 #82153F #758215 #158259
split-complementary
#221582 #825915 #3F8215
monochromatic
#07041A #140C4D #221582 #301EB7 #4833DE

Accessibility & contrast

On white

14.02
#221582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#221582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221582
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221582#FFFFFF#000000##FFFFFF
##2215821.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003085
Deuteranopia (green-blind)
#002780
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #221582;
/* rgb */ color: rgb(34, 21, 130);
/* oklch */ color: oklch(31.0% 0.168 275.7);
Tailwind
colors: {
  custom: {
    50: '#6e56a8',
    500: '#221582',
    950: '#000000',
  },
}
SCSS
$custom: #221582;
$custom-light: #6e56a8;
$custom-dark: #000000;
JSON
{
  "hex": "#221582",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 130
  },
  "hsl": {
    "h": 247.156,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31011,
    "c": 0.16785,
    "h": 275.7
  },
  "luminance": 0.02488
}

Semantic roles & 50–950 ramp

primary
#221582
secondary
#A8B73C
accent
#EF39D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #221582

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

Preview Lab → · Contrast checker → · Palette generator →

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