#222292#222292

#222292 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.176 H 272.4°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#222292
RGBrgb(34, 34, 146)
HSLhsl(240, 62%, 35%)
HSVhsv(240, 77%, 57%)
CMYKcmyk(76.7%, 76.7%, 0%, 42.7%)
CIE-LABlab(22.16, 39.15, -60.69)
CIE-LCHlch(22.16, 72.22, 302.82°)
OKLaboklab(34.56% 0.0072 -0.1757)
OKLCHoklch(34.56% 0.176 272.4)
XYZxyz(6.4183, 3.5588, 27.5372)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222292 #929222
analogous
#225A92 #222292 #5A2292
triadic
#222292 #922222 #229222
tetradic
#222292 #92225A #929222 #22925A
square
#222292 #92225A #929222 #22925A
split-complementary
#222292 #925A22 #5A9222
monochromatic
#0B0B2F #161660 #222292 #2E2EC4 #5757D8

Accessibility & contrast

On white

12.27
#222292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222292
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222292#FFFFFF#000000##FFFFFF
##2222921.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#002F90
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222292;
/* rgb */ color: rgb(34, 34, 146);
/* oklch */ color: oklch(34.6% 0.176 272.4);
Tailwind
colors: {
  custom: {
    50: '#715fb3',
    500: '#222292',
    950: '#000000',
  },
}
SCSS
$custom: #222292;
$custom-light: #715fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#222292",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 240,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34563,
    "c": 0.17581,
    "h": 272.4
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#222292
secondary
#BCBC54
accent
#E543E5
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #222292

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

Preview Lab → · Contrast checker → · Palette generator →

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