#170B37#170B37

#170B37 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.0% C 0.081 H 289.6°. Best body text is #FFFFFF at 18.43:1 contrast (WCAG AA passes).

Color values

HEX#170B37
RGBrgb(23, 11, 55)
HSLhsl(256, 67%, 13%)
HSVhsv(256, 80%, 22%)
CMYKcmyk(58.2%, 80%, 0%, 78.4%)
CIE-LABlab(6.30, 19.08, -26.26)
CIE-LCHlch(6.30, 32.46, 306.01°)
OKLaboklab(19.96% 0.027 -0.076)
OKLCHoklch(19.96% 0.081 289.6)
XYZxyz(1.1624, 0.6973, 3.6870)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B37 #2B370B
analogous
#0B1537 #170B37 #2D0B37
triadic
#170B37 #37170B #0B3717
tetradic
#170B37 #370B15 #2B370B #0B372D
square
#170B37 #370B15 #2B370B #0B372D
split-complementary
#170B37 #372D0B #15370B
monochromatic
#0B051A #0B051A #170B37 #2C156A #421F9D

Accessibility & contrast

On white

18.43
#170B37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#170B37 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170B37
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B37#FFFFFF#000000##FFFFFF
##170B371.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001538
Deuteranopia (green-blind)
#001336
Tritanopia (blue-blind)
#0C161F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #170b37;
/* rgb */ color: rgb(23, 11, 55);
/* oklch */ color: oklch(20.0% 0.081 289.6);
Tailwind
colors: {
  custom: {
    50: '#584b6e',
    500: '#170b37',
    950: '#000000',
  },
}
SCSS
$custom: #170b37;
$custom-light: #584b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#170b37",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 55
  },
  "hsl": {
    "h": 256.364,
    "s": 66.667,
    "l": 12.941
  },
  "oklch": {
    "l": 0.19962,
    "c": 0.08065,
    "h": 289.6
  },
  "luminance": 0.00697
}

Semantic roles & 50–950 ramp

primary
#170B37
secondary
#60742A
accent
#EA3EBB
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #170B37

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

Preview Lab → · Contrast checker → · Palette generator →

#170B37 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva