#22227E#22227E

#22227E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.150 H 274.1°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#22227E
RGBrgb(34, 34, 126)
HSLhsl(240, 58%, 31%)
HSVhsv(240, 73%, 49%)
CMYKcmyk(73%, 73%, 0%, 50.6%)
CIE-LABlab(20.00, 32.11, -51.71)
CIE-LCHlch(20.00, 60.87, 301.84°)
OKLaboklab(32.39% 0.0108 -0.1495)
OKLCHoklch(32.39% 0.15 274.1)
XYZxyz(4.9964, 2.9900, 20.0484)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22227E #7E7E22
analogous
#22507E #22227E #50227E
triadic
#22227E #7E2222 #227E22
tetradic
#22227E #7E2250 #7E7E22 #227E50
square
#22227E #7E2250 #7E7E22 #227E50
split-complementary
#22227E #7E5022 #507E22
monochromatic
#08081E #15154E #22227E #2F2FAE #4C4CCF

Accessibility & contrast

On white

13.14
#22227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#22227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22227E
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22227E#FFFFFF#000000##FFFFFF
##22227E1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22227e;
/* rgb */ color: rgb(34, 34, 126);
/* oklch */ color: oklch(32.4% 0.150 274.1);
Tailwind
colors: {
  custom: {
    50: '#6c5ea4',
    500: '#22227e',
    950: '#000000',
  },
}
SCSS
$custom: #22227e;
$custom-light: #6c5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#22227e",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 240,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32387,
    "c": 0.14987,
    "h": 274.1
  },
  "luminance": 0.0299
}

Semantic roles & 50–950 ramp

primary
#22227E
secondary
#B1B14B
accent
#E147E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #22227E

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

Preview Lab → · Contrast checker → · Palette generator →

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