#22229E#22229E

#22229E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.191 H 271.5°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#22229E
RGBrgb(34, 34, 158)
HSLhsl(240, 65%, 38%)
HSVhsv(240, 78%, 62%)
CMYKcmyk(78.5%, 78.5%, 0%, 38%)
CIE-LABlab(23.51, 43.20, -65.83)
CIE-LCHlch(23.51, 78.74, 303.28°)
OKLaboklab(35.92% 0.0049 -0.1906)
OKLCHoklch(35.92% 0.191 271.5)
XYZxyz(7.4012, 3.9519, 32.7139)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22229E #9E9E22
analogous
#22609E #22229E #60229E
triadic
#22229E #9E2222 #229E22
tetradic
#22229E #9E2260 #9E9E22 #229E60
square
#22229E #9E2260 #9E9E22 #229E60
split-complementary
#22229E #9E6022 #609E22
monochromatic
#0C0C39 #17176C #22229E #2D2DD0 #5E5EDC

Accessibility & contrast

On white

11.73
#22229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#22229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22229E
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22229E#FFFFFF#000000##FFFFFF
##22229E1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #22229e;
/* rgb */ color: rgb(34, 34, 158);
/* oklch */ color: oklch(35.9% 0.191 271.5);
Tailwind
colors: {
  custom: {
    50: '#745fbc',
    500: '#22229e',
    950: '#000000',
  },
}
SCSS
$custom: #22229e;
$custom-light: #745fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#22229e",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 240,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.35918,
    "c": 0.19064,
    "h": 271.5
  },
  "luminance": 0.03953
}

Semantic roles & 50–950 ramp

primary
#22229E
secondary
#C1C15B
accent
#E840E8
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #22229E

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

Preview Lab → · Contrast checker → · Palette generator →

#22229E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva