#22175D#22175D

#22175D is a dark, moderate blue. Relative luminance 0.017; OKLCH L 27.1% C 0.118 H 282.3°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#22175D
RGBrgb(34, 23, 93)
HSLhsl(249, 60%, 23%)
HSVhsv(249, 75%, 36%)
CMYKcmyk(63.4%, 75.3%, 0%, 63.5%)
CIE-LABlab(14.08, 27.34, -39.96)
CIE-LCHlch(14.08, 48.42, 304.38°)
OKLaboklab(27.11% 0.0251 -0.1151)
OKLCHoklch(27.11% 0.118 282.3)
XYZxyz(2.9413, 1.7430, 10.5352)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22175D #525D17
analogous
#172F5D #22175D #45175D
triadic
#22175D #5D2217 #175D22
tetradic
#22175D #5D172F #525D17 #175D45
square
#22175D #5D172F #525D17 #175D45
split-complementary
#22175D #5D4517 #2F5D17
monochromatic
#090619 #100B2C #22175D #34238E #462FBF

Accessibility & contrast

On white

15.57
#22175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22175D
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22175D#FFFFFF#000000##FFFFFF
##22175D1.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #22175d;
/* rgb */ color: rgb(34, 23, 93);
/* oklch */ color: oklch(27.1% 0.118 282.3);
Tailwind
colors: {
  custom: {
    50: '#65558c',
    500: '#22175d',
    950: '#000000',
  },
}
SCSS
$custom: #22175d;
$custom-light: #65558c;
$custom-dark: #000000;
JSON
{
  "hex": "#22175d",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 249.429,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.2711,
    "c": 0.11783,
    "h": 282.3
  },
  "luminance": 0.01743
}

Semantic roles & 50–950 ramp

primary
#22175D
secondary
#86943C
accent
#E344CA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #22175D

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

Preview Lab → · Contrast checker → · Palette generator →

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