#221881#221881

#221881 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.164 H 275.5°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#221881
RGBrgb(34, 24, 129)
HSLhsl(246, 69%, 30%)
HSVhsv(246, 81%, 51%)
CMYKcmyk(73.6%, 81.4%, 0%, 49.4%)
CIE-LABlab(18.27, 38.99, -56.47)
CIE-LCHlch(18.27, 68.62, 304.62°)
OKLaboklab(31.26% 0.0156 -0.1633)
OKLCHoklch(31.26% 0.164 275.5)
XYZxyz(4.9475, 2.5779, 21.0015)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221881 #778118
analogous
#184381 #221881 #561881
triadic
#221881 #812218 #188122
tetradic
#221881 #811843 #778118 #188156
square
#221881 #811843 #778118 #188156
split-complementary
#221881 #815618 #438118
monochromatic
#07051A #140E4D #221881 #3022B5 #4939DA

Accessibility & contrast

On white

13.86
#221881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#221881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221881
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221881#FFFFFF#000000##FFFFFF
##2218811.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #221881;
/* rgb */ color: rgb(34, 24, 129);
/* oklch */ color: oklch(31.3% 0.164 275.5);
Tailwind
colors: {
  custom: {
    50: '#6e58a7',
    500: '#221881',
    950: '#000000',
  },
}
SCSS
$custom: #221881;
$custom-light: #6e58a7;
$custom-dark: #000000;
JSON
{
  "hex": "#221881",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 245.714,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.31257,
    "c": 0.16403,
    "h": 275.5
  },
  "luminance": 0.02578
}

Semantic roles & 50–950 ramp

primary
#221881
secondary
#AAB540
accent
#EB3CDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #221881

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

Preview Lab → · Contrast checker → · Palette generator →

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