#222892#222892

#222892 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.170 H 271.5°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#222892
RGBrgb(34, 40, 146)
HSLhsl(237, 62%, 35%)
HSVhsv(237, 77%, 57%)
CMYKcmyk(76.7%, 72.6%, 0%, 42.7%)
CIE-LABlab(23.45, 35.54, -58.56)
CIE-LCHlch(23.45, 68.50, 301.25°)
OKLaboklab(35.48% 0.0044 -0.1695)
OKLCHoklch(35.48% 0.17 271.5)
XYZxyz(6.6050, 3.9323, 27.5995)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222892 #928C22
analogous
#226092 #222892 #542292
triadic
#222892 #922228 #289222
tetradic
#222892 #922260 #928C22 #229254
square
#222892 #922260 #928C22 #229254
split-complementary
#222892 #925422 #609222
monochromatic
#0B0D2F #161A60 #222892 #2E36C4 #575ED8

Accessibility & contrast

On white

11.75
#222892 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#222892 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222892
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222892#FFFFFF#000000##FFFFFF
##2228921.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222892;
/* rgb */ color: rgb(34, 40, 146);
/* oklch */ color: oklch(35.5% 0.170 271.5);
Tailwind
colors: {
  custom: {
    50: '#7063b3',
    500: '#222892',
    950: '#000000',
  },
}
SCSS
$custom: #222892;
$custom-light: #7063b3;
$custom-dark: #000000;
JSON
{
  "hex": "#222892",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 146
  },
  "hsl": {
    "h": 236.786,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35483,
    "c": 0.16956,
    "h": 271.5
  },
  "luminance": 0.03933
}

Semantic roles & 50–950 ramp

primary
#222892
secondary
#BCB654
accent
#DD43E5
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222892

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

Preview Lab → · Contrast checker → · Palette generator →

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