#22228E#22228E

#22228E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.171 H 272.7°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#22228E
RGBrgb(34, 34, 142)
HSLhsl(240, 61%, 35%)
HSVhsv(240, 76%, 56%)
CMYKcmyk(76.1%, 76.1%, 0%, 44.3%)
CIE-LABlab(21.71, 37.77, -58.94)
CIE-LCHlch(21.71, 70.00, 302.65°)
OKLaboklab(34.12% 0.008 -0.1706)
OKLCHoklch(34.12% 0.171 272.7)
XYZxyz(6.1126, 3.4365, 25.9271)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22228E #8E8E22
analogous
#22588E #22228E #58228E
triadic
#22228E #8E2222 #228E22
tetradic
#22228E #8E2258 #8E8E22 #228E58
square
#22228E #8E2258 #8E8E22 #228E58
split-complementary
#22228E #8E5822 #588E22
monochromatic
#0A0A2B #16165D #22228E #2E2EBF #5454D6

Accessibility & contrast

On white

12.45
#22228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#22228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22228E
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22228E#FFFFFF#000000##FFFFFF
##22228E1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #22228e;
/* rgb */ color: rgb(34, 34, 142);
/* oklch */ color: oklch(34.1% 0.171 272.7);
Tailwind
colors: {
  custom: {
    50: '#705fb0',
    500: '#22228e',
    950: '#000000',
  },
}
SCSS
$custom: #22228e;
$custom-light: #705fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#22228e",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 240,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34118,
    "c": 0.17076,
    "h": 272.7
  },
  "luminance": 0.03437
}

Semantic roles & 50–950 ramp

primary
#22228E
secondary
#BABA52
accent
#E443E4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #22228E

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

Preview Lab → · Contrast checker → · Palette generator →

#22228E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva