#22117E#22117E

#22117E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.1% C 0.166 H 276.7°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#22117E
RGBrgb(34, 17, 126)
HSLhsl(249, 76%, 28%)
HSVhsv(249, 87%, 49%)
CMYKcmyk(73%, 86.5%, 0%, 50.6%)
CIE-LABlab(16.73, 41.45, -57.11)
CIE-LCHlch(16.73, 70.57, 305.97°)
OKLaboklab(30.09% 0.0194 -0.165)
OKLCHoklch(30.09% 0.166 276.7)
XYZxyz(4.6248, 2.2469, 19.9246)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22117E #6D7E11
analogous
#11367E #22117E #58117E
triadic
#22117E #7E2211 #117E22
tetradic
#22117E #7E1136 #6D7E11 #117E58
square
#22117E #7E1136 #6D7E11 #117E58
split-complementary
#22117E #7E5811 #367E11
monochromatic
#07041B #130A48 #22117E #3118B4 #4527E2

Accessibility & contrast

On white

14.49
#22117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#22117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22117E
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22117E#FFFFFF#000000##FFFFFF
##22117E1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #22117e;
/* rgb */ color: rgb(34, 17, 126);
/* oklch */ color: oklch(30.1% 0.166 276.7);
Tailwind
colors: {
  custom: {
    50: '#6e54a5',
    500: '#22117e',
    950: '#000000',
  },
}
SCSS
$custom: #22117e;
$custom-light: #6e54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22117e",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 249.358,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30088,
    "c": 0.16615,
    "h": 276.7
  },
  "luminance": 0.02247
}

Semantic roles & 50–950 ramp

primary
#22117E
secondary
#A1B437
accent
#F335D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22117E

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

Preview Lab → · Contrast checker → · Palette generator →

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