#222786#222786

#222786 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.155 H 272.4°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#222786
RGBrgb(34, 39, 134)
HSLhsl(237, 60%, 33%)
HSVhsv(237, 75%, 53%)
CMYKcmyk(74.6%, 70.9%, 0%, 47.5%)
CIE-LABlab(21.99, 31.82, -53.49)
CIE-LCHlch(21.99, 62.24, 300.75°)
OKLaboklab(34.06% 0.0065 -0.1547)
OKLCHoklch(34.06% 0.155 272.4)
XYZxyz(5.6868, 3.5118, 22.9278)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222786 #868122
analogous
#225986 #222786 #4F2286
triadic
#222786 #862227 #278622
tetradic
#222786 #862259 #868122 #22864F
square
#222786 #862259 #868122 #22864F
split-complementary
#222786 #864F22 #598622
monochromatic
#090B24 #161955 #222786 #2E35B7 #5056D3

Accessibility & contrast

On white

12.34
#222786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#222786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222786
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222786#FFFFFF#000000##FFFFFF
##2227861.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222786;
/* rgb */ color: rgb(34, 39, 134);
/* oklch */ color: oklch(34.1% 0.155 272.4);
Tailwind
colors: {
  custom: {
    50: '#6d61aa',
    500: '#222786',
    950: '#000000',
  },
}
SCSS
$custom: #222786;
$custom-light: #6d61aa;
$custom-dark: #000000;
JSON
{
  "hex": "#222786",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 237,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34062,
    "c": 0.15484,
    "h": 272.4
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#222786
secondary
#B6B14E
accent
#DB45E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222786

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

Preview Lab → · Contrast checker → · Palette generator →

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