#22117D#22117D

#22117D is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.165 H 276.9°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#22117D
RGBrgb(34, 17, 125)
HSLhsl(249, 76%, 28%)
HSVhsv(249, 86%, 49%)
CMYKcmyk(72.8%, 86.4%, 0%, 51%)
CIE-LABlab(16.61, 41.14, -56.68)
CIE-LCHlch(16.61, 70.04, 305.97°)
OKLaboklab(29.97% 0.0197 -0.1638)
OKLCHoklch(29.97% 0.165 276.9)
XYZxyz(4.5606, 2.2212, 19.5865)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22117D #6C7D11
analogous
#11367D #22117D #58117D
triadic
#22117D #7D2211 #117D22
tetradic
#22117D #7D1136 #6C7D11 #117D58
square
#22117D #7D1136 #6C7D11 #117D58
split-complementary
#22117D #7D5811 #367D11
monochromatic
#07041B #130A47 #22117D #3118B3 #4427E2

Accessibility & contrast

On white

14.54
#22117D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#22117D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22117D
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22117D#FFFFFF#000000##FFFFFF
##22117D1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D80
Deuteranopia (green-blind)
#00247B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #22117d;
/* rgb */ color: rgb(34, 17, 125);
/* oklch */ color: oklch(30.0% 0.165 276.9);
Tailwind
colors: {
  custom: {
    50: '#6d54a4',
    500: '#22117d',
    950: '#000000',
  },
}
SCSS
$custom: #22117d;
$custom-light: #6d54a4;
$custom-dark: #000000;
JSON
{
  "hex": "#22117d",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 125
  },
  "hsl": {
    "h": 249.444,
    "s": 76.056,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29966,
    "c": 0.16495,
    "h": 276.9
  },
  "luminance": 0.02222
}

Semantic roles & 50–950 ramp

primary
#22117D
secondary
#A0B337
accent
#F335D5
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22117D

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

Preview Lab → · Contrast checker → · Palette generator →

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