#22227D#22227D

#22227D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.149 H 274.2°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#22227D
RGBrgb(34, 34, 125)
HSLhsl(240, 57%, 31%)
HSVhsv(240, 73%, 49%)
CMYKcmyk(72.8%, 72.8%, 0%, 51%)
CIE-LABlab(19.90, 31.75, -51.24)
CIE-LCHlch(19.90, 60.28, 301.79°)
OKLaboklab(32.28% 0.011 -0.1481)
OKLCHoklch(32.28% 0.149 274.2)
XYZxyz(4.9322, 2.9643, 19.7103)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22227D #7D7D22
analogous
#224F7D #22227D #4F227D
triadic
#22227D #7D2222 #227D22
tetradic
#22227D #7D224F #7D7D22 #227D4F
square
#22227D #7D224F #7D7D22 #227D4F
split-complementary
#22227D #7D4F22 #4F7D22
monochromatic
#08081D #15154D #22227D #2F2FAD #4B4BCE

Accessibility & contrast

On white

13.18
#22227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22227D
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22227D#FFFFFF#000000##FFFFFF
##22227D1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22227d;
/* rgb */ color: rgb(34, 34, 125);
/* oklch */ color: oklch(32.3% 0.149 274.2);
Tailwind
colors: {
  custom: {
    50: '#6c5ea4',
    500: '#22227d',
    950: '#000000',
  },
}
SCSS
$custom: #22227d;
$custom-light: #6c5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#22227d",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 240,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32282,
    "c": 0.14854,
    "h": 274.2
  },
  "luminance": 0.02965
}

Semantic roles & 50–950 ramp

primary
#22227D
secondary
#B0B04B
accent
#E047E0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #22227D

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

Preview Lab → · Contrast checker → · Palette generator →

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