#171158#171158

#171158 is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.6% C 0.120 H 276.6°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#171158
RGBrgb(23, 17, 88)
HSLhsl(245, 68%, 21%)
HSVhsv(245, 81%, 35%)
CMYKcmyk(73.9%, 80.7%, 0%, 65.5%)
CIE-LABlab(11.19, 27.74, -41.38)
CIE-LCHlch(11.19, 49.82, 303.84°)
OKLaboklab(24.64% 0.0139 -0.1196)
OKLCHoklch(24.64% 0.12 276.6)
XYZxyz(2.3147, 1.2874, 9.3571)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171158 #525811
analogous
#112E58 #171158 #3A1158
triadic
#171158 #581711 #115817
tetradic
#171158 #58112E #525811 #11583A
square
#171158 #58112E #525811 #11583A
split-complementary
#171158 #583A11 #2E5811
monochromatic
#07051A #0A0725 #171158 #241B8B #3225BF

Accessibility & contrast

On white

16.70
#171158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#171158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171158
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171158#FFFFFF#000000##FFFFFF
##1711581.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215A
Deuteranopia (green-blind)
#001B57
Tritanopia (blue-blind)
#002633
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #171158;
/* rgb */ color: rgb(23, 17, 88);
/* oklch */ color: oklch(24.6% 0.120 276.6);
Tailwind
colors: {
  custom: {
    50: '#5f5088',
    500: '#171158',
    950: '#000000',
  },
}
SCSS
$custom: #171158;
$custom-light: #5f5088;
$custom-dark: #000000;
JSON
{
  "hex": "#171158",
  "rgb": {
    "r": 23,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 245.07,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.2464,
    "c": 0.1204,
    "h": 276.6
  },
  "luminance": 0.01288
}

Semantic roles & 50–950 ramp

primary
#171158
secondary
#899134
accent
#EA3DDC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020B
muted
#7A787C

Preview Lab

Preview with #171158

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

Preview Lab → · Contrast checker → · Palette generator →

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