#171162#171162

#171162 is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.8% C 0.134 H 274.9°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#171162
RGBrgb(23, 17, 98)
HSLhsl(244, 70%, 23%)
HSVhsv(244, 83%, 38%)
CMYKcmyk(76.5%, 82.7%, 0%, 61.6%)
CIE-LABlab(12.38, 31.31, -46.12)
CIE-LCHlch(12.38, 55.75, 304.17°)
OKLaboklab(25.83% 0.0114 -0.1334)
OKLCHoklch(25.83% 0.134 274.9)
XYZxyz(2.7577, 1.4646, 11.6903)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171162 #5C6211
analogous
#113462 #171162 #3F1162
triadic
#171162 #621711 #116217
tetradic
#171162 #621134 #5C6211 #11623F
square
#171162 #621134 #5C6211 #11623F
split-complementary
#171162 #623F11 #346211
monochromatic
#06051A #0B082E #171162 #231A96 #2F23CA

Accessibility & contrast

On white

16.24
#171162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#171162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171162
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171162#FFFFFF#000000##FFFFFF
##1711621.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002464
Deuteranopia (green-blind)
#001D61
Tritanopia (blue-blind)
#002939
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #171162;
/* rgb */ color: rgb(23, 17, 98);
/* oklch */ color: oklch(25.8% 0.134 274.9);
Tailwind
colors: {
  custom: {
    50: '#625190',
    500: '#171162',
    950: '#000000',
  },
}
SCSS
$custom: #171162;
$custom-light: #625190;
$custom-dark: #000000;
JSON
{
  "hex": "#171162",
  "rgb": {
    "r": 23,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 244.444,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.25834,
    "c": 0.13387,
    "h": 274.9
  },
  "luminance": 0.01465
}

Semantic roles & 50–950 ramp

primary
#171162
secondary
#939A34
accent
#ED3BE0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020D
muted
#7A787D

Preview Lab

Preview with #171162

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

Preview Lab → · Contrast checker → · Palette generator →

#171162 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva