#222481#222481

#222481 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.152 H 273.4°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#222481
RGBrgb(34, 36, 129)
HSLhsl(239, 58%, 32%)
HSVhsv(239, 74%, 51%)
CMYKcmyk(73.6%, 72.1%, 0%, 49.4%)
CIE-LABlab(20.78, 31.93, -52.34)
CIE-LCHlch(20.78, 61.31, 301.38°)
OKLaboklab(33.03% 0.0091 -0.1513)
OKLCHoklch(33.03% 0.152 273.4)
XYZxyz(5.2517, 3.1863, 21.1029)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222481 #817F22
analogous
#225481 #222481 #502281
triadic
#222481 #812224 #248122
tetradic
#222481 #812254 #817F22 #228150
square
#222481 #812254 #817F22 #228150
split-complementary
#222481 #815022 #548122
monochromatic
#080920 #151651 #222481 #2F32B1 #4D50D0

Accessibility & contrast

On white

12.83
#222481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#222481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222481
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222481#FFFFFF#000000##FFFFFF
##2224811.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #222481;
/* rgb */ color: rgb(34, 36, 129);
/* oklch */ color: oklch(33.0% 0.152 273.4);
Tailwind
colors: {
  custom: {
    50: '#6d5fa7',
    500: '#222481',
    950: '#000000',
  },
}
SCSS
$custom: #222481;
$custom-light: #6d5fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#222481",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 129
  },
  "hsl": {
    "h": 238.737,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33035,
    "c": 0.1516,
    "h": 273.4
  },
  "luminance": 0.03187
}

Semantic roles & 50–950 ramp

primary
#222481
secondary
#B3B14B
accent
#DE46E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #222481

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

Preview Lab → · Contrast checker → · Palette generator →

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