#221581#221581

#221581 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.167 H 275.8°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#221581
RGBrgb(34, 21, 129)
HSLhsl(247, 72%, 29%)
HSVhsv(247, 84%, 51%)
CMYKcmyk(73.6%, 83.7%, 0%, 49.4%)
CIE-LABlab(17.74, 40.52, -57.35)
CIE-LCHlch(17.74, 70.22, 305.24°)
OKLaboklab(30.89% 0.0169 -0.1658)
OKLCHoklch(30.89% 0.167 275.8)
XYZxyz(4.8890, 2.4609, 20.9820)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221581 #748115
analogous
#153E81 #221581 #581581
triadic
#221581 #812215 #158122
tetradic
#221581 #81153E #748115 #158158
square
#221581 #81153E #748115 #158158
split-complementary
#221581 #815815 #3E8115
monochromatic
#07041A #140C4C #221581 #301EB6 #4733DE

Accessibility & contrast

On white

14.07
#221581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#221581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221581
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221581#FFFFFF#000000##FFFFFF
##2215811.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #221581;
/* rgb */ color: rgb(34, 21, 129);
/* oklch */ color: oklch(30.9% 0.167 275.8);
Tailwind
colors: {
  custom: {
    50: '#6e56a7',
    500: '#221581',
    950: '#000000',
  },
}
SCSS
$custom: #221581;
$custom-light: #6e56a7;
$custom-dark: #000000;
JSON
{
  "hex": "#221581",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 247.222,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30891,
    "c": 0.16663,
    "h": 275.8
  },
  "luminance": 0.02461
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #221581

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

Preview Lab → · Contrast checker → · Palette generator →

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