#222581#222581

#222581 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.150 H 273.2°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#222581
RGBrgb(34, 37, 129)
HSLhsl(238, 58%, 32%)
HSVhsv(238, 74%, 51%)
CMYKcmyk(73.6%, 71.3%, 0%, 49.4%)
CIE-LABlab(21.01, 31.29, -51.95)
CIE-LCHlch(21.01, 60.64, 301.06°)
OKLaboklab(33.2% 0.0084 -0.1502)
OKLCHoklch(33.2% 0.15 273.2)
XYZxyz(5.2824, 3.2477, 21.1131)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222581 #817E22
analogous
#225581 #222581 #4F2281
triadic
#222581 #812225 #258122
tetradic
#222581 #812255 #817E22 #22814F
square
#222581 #812255 #817E22 #22814F
split-complementary
#222581 #814F22 #558122
monochromatic
#080920 #151751 #222581 #2F33B1 #4D51D0

Accessibility & contrast

On white

12.73
#222581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#222581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222581
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222581#FFFFFF#000000##FFFFFF
##2225811.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #222581;
/* rgb */ color: rgb(34, 37, 129);
/* oklch */ color: oklch(33.2% 0.150 273.2);
Tailwind
colors: {
  custom: {
    50: '#6c60a7',
    500: '#222581',
    950: '#000000',
  },
}
SCSS
$custom: #222581;
$custom-light: #6c60a7;
$custom-dark: #000000;
JSON
{
  "hex": "#222581",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 129
  },
  "hsl": {
    "h": 238.105,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33204,
    "c": 0.15044,
    "h": 273.2
  },
  "luminance": 0.03248
}

Semantic roles & 50–950 ramp

primary
#222581
secondary
#B3B04B
accent
#DD46E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #222581

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

Preview Lab → · Contrast checker → · Palette generator →

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