#222885#222885

#222885 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.152 H 272.3°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#222885
RGBrgb(34, 40, 133)
HSLhsl(236, 59%, 33%)
HSVhsv(236, 74%, 52%)
CMYKcmyk(74.4%, 69.9%, 0%, 47.8%)
CIE-LABlab(22.13, 30.81, -52.64)
CIE-LCHlch(22.13, 60.99, 300.34°)
OKLaboklab(34.13% 0.006 -0.1522)
OKLCHoklch(34.13% 0.152 272.3)
XYZxyz(5.6507, 3.5505, 22.5733)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222885 #857F22
analogous
#225985 #222885 #4E2285
triadic
#222885 #852228 #288522
tetradic
#222885 #852259 #857F22 #22854E
square
#222885 #852259 #857F22 #22854E
split-complementary
#222885 #854E22 #598522
monochromatic
#090B24 #161954 #222885 #2E37B6 #4F57D2

Accessibility & contrast

On white

12.28
#222885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#222885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222885
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222885#FFFFFF#000000##FFFFFF
##2228851.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222885;
/* rgb */ color: rgb(34, 40, 133);
/* oklch */ color: oklch(34.1% 0.152 272.3);
Tailwind
colors: {
  custom: {
    50: '#6d62a9',
    500: '#222885',
    950: '#000000',
  },
}
SCSS
$custom: #222885;
$custom-light: #6d62a9;
$custom-dark: #000000;
JSON
{
  "hex": "#222885",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 236.364,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34132,
    "c": 0.15232,
    "h": 272.3
  },
  "luminance": 0.03551
}

Semantic roles & 50–950 ramp

primary
#222885
secondary
#B6AF4D
accent
#D945E2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222885

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

Preview Lab → · Contrast checker → · Palette generator →

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