#22118C#22118C

#22118C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.8% C 0.183 H 274.6°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#22118C
RGBrgb(34, 17, 140)
HSLhsl(248, 78%, 31%)
HSVhsv(248, 88%, 55%)
CMYKcmyk(75.7%, 87.9%, 0%, 45.1%)
CIE-LABlab(18.51, 45.70, -62.99)
CIE-LCHlch(18.51, 77.83, 305.96°)
OKLaboklab(31.82% 0.0148 -0.1821)
OKLCHoklch(31.82% 0.183 274.6)
XYZxyz(5.5922, 2.6339, 25.0195)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22118C #7B8C11
analogous
#113D8C #22118C #5F118C
triadic
#22118C #8C2211 #118C22
tetradic
#22118C #8C113D #7B8C11 #118C5F
square
#22118C #8C113D #7B8C11 #118C5F
split-complementary
#22118C #8C5F11 #3D8C11
monochromatic
#07041F #150A55 #22118C #2F18C3 #4A31E6

Accessibility & contrast

On white

13.75
#22118C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#22118C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22118C
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22118C#FFFFFF#000000##FFFFFF
##22118C1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #22118c;
/* rgb */ color: rgb(34, 17, 140);
/* oklch */ color: oklch(31.8% 0.183 274.6);
Tailwind
colors: {
  custom: {
    50: '#7155af',
    500: '#22118c',
    950: '#000000',
  },
}
SCSS
$custom: #22118c;
$custom-light: #7155af;
$custom-dark: #000000;
JSON
{
  "hex": "#22118c",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 140
  },
  "hsl": {
    "h": 248.293,
    "s": 78.344,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31819,
    "c": 0.18267,
    "h": 274.6
  },
  "luminance": 0.02634
}

Semantic roles & 50–950 ramp

primary
#22118C
secondary
#AEC138
accent
#F533DA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #22118C

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

Preview Lab → · Contrast checker → · Palette generator →

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