#222285#222285

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

Color values

HEX#222285
RGBrgb(34, 34, 133)
HSLhsl(240, 59%, 33%)
HSVhsv(240, 74%, 52%)
CMYKcmyk(74.4%, 74.4%, 0%, 47.8%)
CIE-LABlab(20.74, 34.61, -54.92)
CIE-LCHlch(20.74, 64.91, 302.22°)
OKLaboklab(33.14% 0.0096 -0.1588)
OKLCHoklch(33.14% 0.159 273.5)
XYZxyz(5.4639, 3.1770, 22.5110)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222285 #858522
analogous
#225385 #222285 #532285
triadic
#222285 #852222 #228522
tetradic
#222285 #852253 #858522 #228553
square
#222285 #852253 #858522 #228553
split-complementary
#222285 #855322 #538522
monochromatic
#090924 #161654 #222285 #2E2EB6 #4F4FD2

Accessibility & contrast

On white

12.84
#222285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222285
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222285#FFFFFF#000000##FFFFFF
##2222851.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222285;
/* rgb */ color: rgb(34, 34, 133);
/* oklch */ color: oklch(33.1% 0.159 273.5);
Tailwind
colors: {
  custom: {
    50: '#6e5eaa',
    500: '#222285',
    950: '#000000',
  },
}
SCSS
$custom: #222285;
$custom-light: #6e5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#222285",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 240,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33135,
    "c": 0.15914,
    "h": 273.5
  },
  "luminance": 0.03178
}

Semantic roles & 50–950 ramp

primary
#222285
secondary
#B6B64D
accent
#E245E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #222285

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

Preview Lab → · Contrast checker → · Palette generator →

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