#22228F#22228F

#22228F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.172 H 272.6°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#22228F
RGBrgb(34, 34, 143)
HSLhsl(240, 62%, 35%)
HSVhsv(240, 76%, 56%)
CMYKcmyk(76.2%, 76.2%, 0%, 43.9%)
CIE-LABlab(21.82, 38.11, -59.38)
CIE-LCHlch(21.82, 70.56, 302.69°)
OKLaboklab(34.23% 0.0078 -0.1718)
OKLCHoklch(34.23% 0.172 272.6)
XYZxyz(6.1880, 3.4667, 26.3243)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22228F #8F8F22
analogous
#22598F #22228F #59228F
triadic
#22228F #8F2222 #228F22
tetradic
#22228F #8F2259 #8F8F22 #228F59
square
#22228F #8F2259 #8F8F22 #228F59
split-complementary
#22228F #8F5922 #598F22
monochromatic
#0A0A2C #16165E #22228F #2E2EC0 #5555D7

Accessibility & contrast

On white

12.40
#22228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22228F
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22228F#FFFFFF#000000##FFFFFF
##22228F1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #22228f;
/* rgb */ color: rgb(34, 34, 143);
/* oklch */ color: oklch(34.2% 0.172 272.6);
Tailwind
colors: {
  custom: {
    50: '#705fb1',
    500: '#22228f',
    950: '#000000',
  },
}
SCSS
$custom: #22228f;
$custom-light: #705fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#22228f",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 240,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34229,
    "c": 0.17203,
    "h": 272.6
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22228F

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

Preview Lab → · Contrast checker → · Palette generator →

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