#22227C#22227C

#22227C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.147 H 274.3°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#22227C
RGBrgb(34, 34, 124)
HSLhsl(240, 57%, 31%)
HSVhsv(240, 73%, 49%)
CMYKcmyk(72.6%, 72.6%, 0%, 51.4%)
CIE-LABlab(19.80, 31.39, -50.77)
CIE-LCHlch(19.80, 59.69, 301.73°)
OKLaboklab(32.18% 0.0111 -0.1468)
OKLCHoklch(32.18% 0.147 274.3)
XYZxyz(4.8686, 2.9389, 19.3756)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22227C #7C7C22
analogous
#224F7C #22227C #4F227C
triadic
#22227C #7C2222 #227C22
tetradic
#22227C #7C224F #7C7C22 #227C4F
square
#22227C #7C224F #7C7C22 #227C4F
split-complementary
#22227C #7C4F22 #4F7C22
monochromatic
#08081C #15154C #22227C #2F2FAC #4B4BCE

Accessibility & contrast

On white

13.23
#22227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#22227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22227C
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22227C#FFFFFF#000000##FFFFFF
##22227C1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22227c;
/* rgb */ color: rgb(34, 34, 124);
/* oklch */ color: oklch(32.2% 0.147 274.3);
Tailwind
colors: {
  custom: {
    50: '#6b5ea3',
    500: '#22227c',
    950: '#000000',
  },
}
SCSS
$custom: #22227c;
$custom-light: #6b5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#22227c",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 240,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32177,
    "c": 0.14718,
    "h": 274.3
  },
  "luminance": 0.02939
}

Semantic roles & 50–950 ramp

primary
#22227C
secondary
#AFAF4B
accent
#E048E0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #22227C

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

Preview Lab → · Contrast checker → · Palette generator →

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