#221981#221981

#221981 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.163 H 275.3°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#221981
RGBrgb(34, 25, 129)
HSLhsl(245, 68%, 30%)
HSVhsv(245, 81%, 51%)
CMYKcmyk(73.6%, 80.6%, 0%, 49.4%)
CIE-LABlab(18.45, 38.45, -56.17)
CIE-LCHlch(18.45, 68.07, 304.40°)
OKLaboklab(31.39% 0.0151 -0.1624)
OKLCHoklch(31.39% 0.163 275.3)
XYZxyz(4.9685, 2.6198, 21.0085)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221981 #788119
analogous
#194481 #221981 #561981
triadic
#221981 #812219 #198122
tetradic
#221981 #811944 #788119 #198156
square
#221981 #811944 #788119 #198156
split-complementary
#221981 #815619 #448119
monochromatic
#07051A #140F4E #221981 #3023B4 #493BD9

Accessibility & contrast

On white

13.78
#221981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221981
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221981#FFFFFF#000000##FFFFFF
##2219811.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #221981;
/* rgb */ color: rgb(34, 25, 129);
/* oklch */ color: oklch(31.4% 0.163 275.3);
Tailwind
colors: {
  custom: {
    50: '#6e58a7',
    500: '#221981',
    950: '#000000',
  },
}
SCSS
$custom: #221981;
$custom-light: #6e58a7;
$custom-dark: #000000;
JSON
{
  "hex": "#221981",
  "rgb": {
    "r": 34,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 245.192,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31386,
    "c": 0.16311,
    "h": 275.3
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#221981
secondary
#ABB541
accent
#EA3DDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #221981

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

Preview Lab → · Contrast checker → · Palette generator →

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