#222886#222886

#222886 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.154 H 272.2°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#222886
RGBrgb(34, 40, 134)
HSLhsl(236, 60%, 33%)
HSVhsv(236, 75%, 53%)
CMYKcmyk(74.6%, 70.1%, 0%, 47.5%)
CIE-LABlab(22.23, 31.18, -53.10)
CIE-LCHlch(22.23, 61.58, 300.42°)
OKLaboklab(34.23% 0.0059 -0.1536)
OKLCHoklch(34.23% 0.154 272.2)
XYZxyz(5.7201, 3.5783, 22.9389)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222886 #868022
analogous
#225A86 #222886 #4E2286
triadic
#222886 #862228 #288622
tetradic
#222886 #86225A #868022 #22864E
square
#222886 #86225A #868022 #22864E
split-complementary
#222886 #864E22 #5A8622
monochromatic
#090B24 #161955 #222886 #2E37B7 #5058D3

Accessibility & contrast

On white

12.24
#222886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#222886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222886
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222886#FFFFFF#000000##FFFFFF
##2228861.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222886;
/* rgb */ color: rgb(34, 40, 134);
/* oklch */ color: oklch(34.2% 0.154 272.2);
Tailwind
colors: {
  custom: {
    50: '#6d62aa',
    500: '#222886',
    950: '#000000',
  },
}
SCSS
$custom: #222886;
$custom-light: #6d62aa;
$custom-dark: #000000;
JSON
{
  "hex": "#222886",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 236.4,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34234,
    "c": 0.15367,
    "h": 272.2
  },
  "luminance": 0.03579
}

Semantic roles & 50–950 ramp

primary
#222886
secondary
#B6B04E
accent
#D945E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222886

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

Preview Lab → · Contrast checker → · Palette generator →

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