#22227A#22227A

#22227A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.144 H 274.5°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#22227A
RGBrgb(34, 34, 122)
HSLhsl(240, 56%, 31%)
HSVhsv(240, 72%, 48%)
CMYKcmyk(72.1%, 72.1%, 0%, 52.2%)
CIE-LABlab(19.59, 30.67, -49.84)
CIE-LCHlch(19.59, 58.52, 301.61°)
OKLaboklab(31.97% 0.0114 -0.144)
OKLCHoklch(31.97% 0.144 274.5)
XYZxyz(4.7434, 2.8888, 18.7162)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22227A #7A7A22
analogous
#224E7A #22227A #4E227A
triadic
#22227A #7A2222 #227A22
tetradic
#22227A #7A224E #7A7A22 #227A4E
square
#22227A #7A224E #7A7A22 #227A4E
split-complementary
#22227A #7A4E22 #4E7A22
monochromatic
#07071A #15154A #22227A #2F2FAA #4A4ACD

Accessibility & contrast

On white

13.31
#22227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#22227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22227A
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22227A#FFFFFF#000000##FFFFFF
##22227A1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #22227a;
/* rgb */ color: rgb(34, 34, 122);
/* oklch */ color: oklch(32.0% 0.144 274.5);
Tailwind
colors: {
  custom: {
    50: '#6b5ea1',
    500: '#22227a',
    950: '#000000',
  },
}
SCSS
$custom: #22227a;
$custom-light: #6b5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#22227a",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 240,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31968,
    "c": 0.14447,
    "h": 274.5
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#22227A
secondary
#ADAD4B
accent
#E048E0
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08040F
muted
#7A797F

Preview Lab

Preview with #22227A

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

Preview Lab → · Contrast checker → · Palette generator →

#22227A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva