#22229F#22229F

#22229F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.192 H 271.4°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#22229F
RGBrgb(34, 34, 159)
HSLhsl(240, 65%, 38%)
HSVhsv(240, 79%, 62%)
CMYKcmyk(78.6%, 78.6%, 0%, 37.6%)
CIE-LABlab(23.63, 43.54, -66.25)
CIE-LCHlch(23.63, 79.27, 303.31°)
OKLaboklab(36.03% 0.0047 -0.1918)
OKLCHoklch(36.03% 0.192 271.4)
XYZxyz(7.4876, 3.9865, 33.1690)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22229F #9F9F22
analogous
#22609F #22229F #60229F
triadic
#22229F #9F2222 #229F22
tetradic
#22229F #9F2260 #9F9F22 #229F60
square
#22229F #9F2260 #9F9F22 #229F60
split-complementary
#22229F #9F6022 #609F22
monochromatic
#0C0C3A #17176D #22229F #2D2DD1 #5F5FDD

Accessibility & contrast

On white

11.68
#22229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#22229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22229F
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22229F#FFFFFF#000000##FFFFFF
##22229F1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #22229f;
/* rgb */ color: rgb(34, 34, 159);
/* oklch */ color: oklch(36.0% 0.192 271.4);
Tailwind
colors: {
  custom: {
    50: '#745fbd',
    500: '#22229f',
    950: '#000000',
  },
}
SCSS
$custom: #22229f;
$custom-light: #745fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#22229f",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 240,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36033,
    "c": 0.19186,
    "h": 271.4
  },
  "luminance": 0.03987
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22229F

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

Preview Lab → · Contrast checker → · Palette generator →

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