#22229C#22229C

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

Color values

HEX#22229C
RGBrgb(34, 34, 156)
HSLhsl(240, 64%, 37%)
HSVhsv(240, 78%, 61%)
CMYKcmyk(78.2%, 78.2%, 0%, 38.8%)
CIE-LABlab(23.28, 42.54, -64.99)
CIE-LCHlch(23.28, 77.67, 303.21°)
OKLaboklab(35.69% 0.0053 -0.1881)
OKLCHoklch(35.69% 0.188 271.6)
XYZxyz(7.2304, 3.8836, 31.8146)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22229C #9C9C22
analogous
#225F9C #22229C #5F229C
triadic
#22229C #9C2222 #229C22
tetradic
#22229C #9C225F #9C9C22 #229C5F
square
#22229C #9C225F #9C9C22 #229C5F
split-complementary
#22229C #9C5F22 #5F9C22
monochromatic
#0C0C38 #17176A #22229C #2D2DCE #5D5DDC

Accessibility & contrast

On white

11.82
#22229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#22229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22229C
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22229C#FFFFFF#000000##FFFFFF
##22229C1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00319A
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #22229c;
/* rgb */ color: rgb(34, 34, 156);
/* oklch */ color: oklch(35.7% 0.188 271.6);
Tailwind
colors: {
  custom: {
    50: '#745fbb',
    500: '#22229c',
    950: '#000000',
  },
}
SCSS
$custom: #22229c;
$custom-light: #745fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#22229c",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 240,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3569,
    "c": 0.1882,
    "h": 271.6
  },
  "luminance": 0.03884
}

Semantic roles & 50–950 ramp

primary
#22229C
secondary
#C0C05A
accent
#E741E7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #22229C

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

Preview Lab → · Contrast checker → · Palette generator →

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