#22175B#22175B

#22175B is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.9% C 0.115 H 282.8°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#22175B
RGBrgb(34, 23, 91)
HSLhsl(250, 60%, 22%)
HSVhsv(250, 75%, 36%)
CMYKcmyk(62.6%, 74.7%, 0%, 64.3%)
CIE-LABlab(13.87, 26.64, -38.95)
CIE-LCHlch(13.87, 47.19, 304.37°)
OKLaboklab(26.9% 0.0256 -0.1122)
OKLCHoklch(26.9% 0.115 282.8)
XYZxyz(2.8538, 1.7080, 10.0748)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22175B #505B17
analogous
#172E5B #22175B #44175B
triadic
#22175B #5B2217 #175B22
tetradic
#22175B #5B172E #505B17 #175B44
square
#22175B #5B172E #505B17 #175B44
split-complementary
#22175B #5B4417 #2E5B17
monochromatic
#090618 #100B2A #22175B #34238C #4730BD

Accessibility & contrast

On white

15.65
#22175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#22175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22175B
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22175B#FFFFFF#000000##FFFFFF
##22175B1.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#022937
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #22175b;
/* rgb */ color: rgb(34, 23, 91);
/* oklch */ color: oklch(26.9% 0.115 282.8);
Tailwind
colors: {
  custom: {
    50: '#65558a',
    500: '#22175b',
    950: '#000000',
  },
}
SCSS
$custom: #22175b;
$custom-light: #65558a;
$custom-dark: #000000;
JSON
{
  "hex": "#22175b",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 249.706,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26903,
    "c": 0.11503,
    "h": 282.8
  },
  "luminance": 0.01708
}

Semantic roles & 50–950 ramp

primary
#22175B
secondary
#84923C
accent
#E345C9
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #22175B

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

Preview Lab → · Contrast checker → · Palette generator →

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