#222284#222284

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

Color values

HEX#222284
RGBrgb(34, 34, 132)
HSLhsl(240, 59%, 33%)
HSVhsv(240, 74%, 52%)
CMYKcmyk(74.2%, 74.2%, 0%, 48.2%)
CIE-LABlab(20.63, 34.26, -54.46)
CIE-LCHlch(20.63, 64.34, 302.17°)
OKLaboklab(33.03% 0.0098 -0.1575)
OKLCHoklch(33.03% 0.158 273.6)
XYZxyz(5.3952, 3.1495, 22.1489)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222284 #848422
analogous
#225384 #222284 #532284
triadic
#222284 #842222 #228422
tetradic
#222284 #842253 #848422 #228453
square
#222284 #842253 #848422 #228453
split-complementary
#222284 #845322 #538422
monochromatic
#090923 #151553 #222284 #2F2FB5 #4F4FD2

Accessibility & contrast

On white

12.88
#222284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222284
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222284#FFFFFF#000000##FFFFFF
##2222841.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #222284;
/* rgb */ color: rgb(34, 34, 132);
/* oklch */ color: oklch(33.0% 0.158 273.6);
Tailwind
colors: {
  custom: {
    50: '#6d5ea9',
    500: '#222284',
    950: '#000000',
  },
}
SCSS
$custom: #222284;
$custom-light: #6d5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#222284",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 240,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33027,
    "c": 0.15784,
    "h": 273.6
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#222284
secondary
#B5B54D
accent
#E246E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #222284

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

Preview Lab → · Contrast checker → · Palette generator →

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