#22175E#22175E

#22175E is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.2% C 0.119 H 282.1°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#22175E
RGBrgb(34, 23, 94)
HSLhsl(249, 61%, 23%)
HSVhsv(249, 76%, 37%)
CMYKcmyk(63.8%, 75.5%, 0%, 63.1%)
CIE-LABlab(14.18, 27.69, -40.46)
CIE-LCHlch(14.18, 49.03, 304.38°)
OKLaboklab(27.21% 0.0249 -0.1166)
OKLCHoklch(27.21% 0.119 282.1)
XYZxyz(2.9858, 1.7608, 10.7700)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22175E #535E17
analogous
#172F5E #22175E #45175E
triadic
#22175E #5E2217 #175E22
tetradic
#22175E #5E172F #535E17 #175E45
square
#22175E #5E172F #535E17 #175E45
split-complementary
#22175E #5E4517 #2F5E17
monochromatic
#090619 #100B2D #22175E #34238F #462FC0

Accessibility & contrast

On white

15.53
#22175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#22175E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22175E
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22175E#FFFFFF#000000##FFFFFF
##22175E1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #22175e;
/* rgb */ color: rgb(34, 23, 94);
/* oklch */ color: oklch(27.2% 0.119 282.1);
Tailwind
colors: {
  custom: {
    50: '#65558c',
    500: '#22175e',
    950: '#000000',
  },
}
SCSS
$custom: #22175e;
$custom-light: #65558c;
$custom-dark: #000000;
JSON
{
  "hex": "#22175e",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 249.296,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27214,
    "c": 0.11923,
    "h": 282.1
  },
  "luminance": 0.01761
}

Semantic roles & 50–950 ramp

primary
#22175E
secondary
#87953C
accent
#E444CB
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #22175E

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

Preview Lab → · Contrast checker → · Palette generator →

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