#222880#222880

#222880 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.145 H 272.6°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#222880
RGBrgb(34, 40, 128)
HSLhsl(236, 58%, 32%)
HSVhsv(236, 73%, 50%)
CMYKcmyk(73.4%, 68.8%, 0%, 49.8%)
CIE-LABlab(21.64, 28.95, -50.29)
CIE-LCHlch(21.64, 58.03, 299.93°)
OKLaboklab(33.63% 0.0066 -0.1453)
OKLCHoklch(33.63% 0.145 272.6)
XYZxyz(5.3135, 3.4157, 20.7972)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222880 #807A22
analogous
#225780 #222880 #4B2280
triadic
#222880 #802228 #288022
tetradic
#222880 #802257 #807A22 #22804B
square
#222880 #802257 #807A22 #22804B
split-complementary
#222880 #804B22 #578022
monochromatic
#080A1F #151950 #222880 #2F37B0 #4D55D0

Accessibility & contrast

On white

12.48
#222880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#222880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222880
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222880#FFFFFF#000000##FFFFFF
##2228801.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222880;
/* rgb */ color: rgb(34, 40, 128);
/* oklch */ color: oklch(33.6% 0.145 272.6);
Tailwind
colors: {
  custom: {
    50: '#6c62a6',
    500: '#222880',
    950: '#000000',
  },
}
SCSS
$custom: #222880;
$custom-light: #6c62a6;
$custom-dark: #000000;
JSON
{
  "hex": "#222880",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 128
  },
  "hsl": {
    "h": 236.17,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33628,
    "c": 0.14549,
    "h": 272.6
  },
  "luminance": 0.03416
}

Semantic roles & 50–950 ramp

primary
#222880
secondary
#B2AC4B
accent
#D747E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #222880

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

Preview Lab → · Contrast checker → · Palette generator →

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