#22175F#22175F

#22175F is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.3% C 0.121 H 281.8°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#22175F
RGBrgb(34, 23, 95)
HSLhsl(249, 61%, 23%)
HSVhsv(249, 76%, 37%)
CMYKcmyk(64.2%, 75.8%, 0%, 62.7%)
CIE-LABlab(14.28, 28.03, -40.96)
CIE-LCHlch(14.28, 49.64, 304.39°)
OKLaboklab(27.32% 0.0247 -0.118)
OKLCHoklch(27.32% 0.121 281.8)
XYZxyz(3.0310, 1.7789, 11.0079)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22175F #545F17
analogous
#17305F #22175F #46175F
triadic
#22175F #5F2217 #175F22
tetradic
#22175F #5F1730 #545F17 #175F46
square
#22175F #5F1730 #545F17 #175F46
split-complementary
#22175F #5F4617 #305F17
monochromatic
#090619 #100B2E #22175F #342390 #452FC2

Accessibility & contrast

On white

15.49
#22175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#22175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22175F
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22175F#FFFFFF#000000##FFFFFF
##22175F1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#002A39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #22175f;
/* rgb */ color: rgb(34, 23, 95);
/* oklch */ color: oklch(27.3% 0.121 281.8);
Tailwind
colors: {
  custom: {
    50: '#66558d',
    500: '#22175f',
    950: '#000000',
  },
}
SCSS
$custom: #22175f;
$custom-light: #66558d;
$custom-dark: #000000;
JSON
{
  "hex": "#22175f",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 249.167,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27319,
    "c": 0.12061,
    "h": 281.8
  },
  "luminance": 0.01779
}

Semantic roles & 50–950 ramp

primary
#22175F
secondary
#88963C
accent
#E444CC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #22175F

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

Preview Lab → · Contrast checker → · Palette generator →

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