#222480#222480

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

Color values

HEX#222480
RGBrgb(34, 36, 128)
HSLhsl(239, 58%, 32%)
HSVhsv(239, 73%, 50%)
CMYKcmyk(73.4%, 71.9%, 0%, 49.8%)
CIE-LABlab(20.67, 31.56, -51.87)
CIE-LCHlch(20.67, 60.72, 301.32°)
OKLaboklab(32.93% 0.0092 -0.15)
OKLCHoklch(32.93% 0.15 273.5)
XYZxyz(5.1855, 3.1598, 20.7545)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222480 #807E22
analogous
#225380 #222480 #4F2280
triadic
#222480 #802224 #248022
tetradic
#222480 #802253 #807E22 #22804F
square
#222480 #802253 #807E22 #22804F
split-complementary
#222480 #804F22 #538022
monochromatic
#08091F #151650 #222480 #2F32B0 #4D50D0

Accessibility & contrast

On white

12.87
#222480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#222480 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222480
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222480#FFFFFF#000000##FFFFFF
##2224801.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #222480;
/* rgb */ color: rgb(34, 36, 128);
/* oklch */ color: oklch(32.9% 0.150 273.5);
Tailwind
colors: {
  custom: {
    50: '#6c5fa6',
    500: '#222480',
    950: '#000000',
  },
}
SCSS
$custom: #222480;
$custom-light: #6c5fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#222480",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 128
  },
  "hsl": {
    "h": 238.723,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3293,
    "c": 0.15025,
    "h": 273.5
  },
  "luminance": 0.0316
}

Semantic roles & 50–950 ramp

primary
#222480
secondary
#B2B04B
accent
#DE47E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #222480

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

Preview Lab → · Contrast checker → · Palette generator →

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