#22118E#22118E

#22118E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.1% C 0.185 H 274.4°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#22118E
RGBrgb(34, 17, 142)
HSLhsl(248, 79%, 31%)
HSVhsv(248, 88%, 56%)
CMYKcmyk(76.1%, 88%, 0%, 44.3%)
CIE-LABlab(18.77, 46.30, -63.81)
CIE-LCHlch(18.77, 78.84, 305.96°)
OKLaboklab(32.07% 0.0142 -0.1844)
OKLCHoklch(32.07% 0.185 274.4)
XYZxyz(5.7410, 2.6934, 25.8033)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22118E #7D8E11
analogous
#113E8E #22118E #60118E
triadic
#22118E #8E2211 #118E22
tetradic
#22118E #8E113E #7D8E11 #118E60
square
#22118E #8E113E #7D8E11 #118E60
split-complementary
#22118E #8E6011 #3E8E11
monochromatic
#080421 #150A57 #22118E #2F18C5 #4B33E7

Accessibility & contrast

On white

13.65
#22118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#22118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22118E
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22118E#FFFFFF#000000##FFFFFF
##22118E1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #22118e;
/* rgb */ color: rgb(34, 17, 142);
/* oklch */ color: oklch(32.1% 0.185 274.4);
Tailwind
colors: {
  custom: {
    50: '#7255b0',
    500: '#22118e',
    950: '#000000',
  },
}
SCSS
$custom: #22118e;
$custom-light: #7255b0;
$custom-dark: #000000;
JSON
{
  "hex": "#22118e",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 248.16,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32069,
    "c": 0.18499,
    "h": 274.4
  },
  "luminance": 0.02694
}

Semantic roles & 50–950 ramp

primary
#22118E
secondary
#B0C238
accent
#F533DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #22118E

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

Preview Lab → · Contrast checker → · Palette generator →

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