#22176C#22176C

#22176C is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.138 H 279.0°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#22176C
RGBrgb(34, 23, 108)
HSLhsl(248, 65%, 26%)
HSVhsv(248, 79%, 42%)
CMYKcmyk(68.5%, 78.7%, 0%, 57.6%)
CIE-LABlab(15.67, 32.51, -47.25)
CIE-LCHlch(15.67, 57.36, 304.53°)
OKLaboklab(28.73% 0.0217 -0.1364)
OKLCHoklch(28.73% 0.138 279)
XYZxyz(3.6720, 2.0353, 14.3838)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22176C #616C17
analogous
#17366C #22176C #4C176C
triadic
#22176C #6C2217 #176C22
tetradic
#22176C #6C1736 #616C17 #176C4C
square
#22176C #6C1736 #616C17 #176C4C
split-complementary
#22176C #6C4C17 #366C17
monochromatic
#080519 #120C3A #22176C #32229E #422CD1

Accessibility & contrast

On white

14.92
#22176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#22176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22176C
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22176C#FFFFFF#000000##FFFFFF
##22176C1.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #22176c;
/* rgb */ color: rgb(34, 23, 108);
/* oklch */ color: oklch(28.7% 0.138 279.0);
Tailwind
colors: {
  custom: {
    50: '#695697',
    500: '#22176c',
    950: '#000000',
  },
}
SCSS
$custom: #22176c;
$custom-light: #695697;
$custom-dark: #000000;
JSON
{
  "hex": "#22176c",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 247.765,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28725,
    "c": 0.13814,
    "h": 279
  },
  "luminance": 0.02036
}

Semantic roles & 50–950 ramp

primary
#22176C
secondary
#95A23D
accent
#E840D2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #22176C

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

Preview Lab → · Contrast checker → · Palette generator →

#22176C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva