#222792#222792

#222792 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.171 H 271.6°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#222792
RGBrgb(34, 39, 146)
HSLhsl(237, 62%, 35%)
HSVhsv(237, 77%, 57%)
CMYKcmyk(76.7%, 73.3%, 0%, 42.7%)
CIE-LABlab(23.22, 36.16, -58.93)
CIE-LCHlch(23.22, 69.14, 301.53°)
OKLaboklab(35.32% 0.0049 -0.1706)
OKLCHoklch(35.32% 0.171 271.6)
XYZxyz(6.5718, 3.8657, 27.5884)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222792 #928D22
analogous
#225F92 #222792 #552292
triadic
#222792 #922227 #279222
tetradic
#222792 #92225F #928D22 #229255
square
#222792 #92225F #928D22 #229255
split-complementary
#222792 #925522 #5F9222
monochromatic
#0B0C2F #161A60 #222792 #2E34C4 #575CD8

Accessibility & contrast

On white

11.84
#222792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#222792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222792
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222792#FFFFFF#000000##FFFFFF
##2227921.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D95
Deuteranopia (green-blind)
#003290
Tritanopia (blue-blind)
#00455A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #222792;
/* rgb */ color: rgb(34, 39, 146);
/* oklch */ color: oklch(35.3% 0.171 271.6);
Tailwind
colors: {
  custom: {
    50: '#7162b3',
    500: '#222792',
    950: '#000000',
  },
}
SCSS
$custom: #222792;
$custom-light: #7162b3;
$custom-dark: #000000;
JSON
{
  "hex": "#222792",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 146
  },
  "hsl": {
    "h": 237.321,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35322,
    "c": 0.17064,
    "h": 271.6
  },
  "luminance": 0.03866
}

Semantic roles & 50–950 ramp

primary
#222792
secondary
#BCB754
accent
#DE43E5
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222792

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

Preview Lab → · Contrast checker → · Palette generator →

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