#170C31#170C31

#170C31 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.5% C 0.070 H 292.4°. Best body text is #FFFFFF at 18.53:1 contrast (WCAG AA passes).

Color values

HEX#170C31
RGBrgb(23, 12, 49)
HSLhsl(258, 61%, 12%)
HSVhsv(258, 76%, 19%)
CMYKcmyk(53.1%, 75.5%, 0%, 80.8%)
CIE-LABlab(6.02, 16.04, -22.30)
CIE-LCHlch(6.02, 27.47, 305.73°)
OKLaboklab(19.54% 0.0266 -0.0646)
OKLCHoklch(19.54% 0.07 292.4)
XYZxyz(1.0390, 0.6668, 2.9791)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C31 #26310C
analogous
#0C1431 #170C31 #2A0C31
triadic
#170C31 #31170C #0C3117
tetradic
#170C31 #310C14 #26310C #0C312A
square
#170C31 #310C14 #26310C #0C312A
split-complementary
#170C31 #312A0C #14310C
monochromatic
#0C0619 #0C0619 #170C31 #2E1862 #452493

Accessibility & contrast

On white

18.53
#170C31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#170C31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C31
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C31#FFFFFF#000000##FFFFFF
##170C311.0018.531.1318.53
#FFFFFF18.531.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001432
Deuteranopia (green-blind)
#001330
Tritanopia (blue-blind)
#10151C
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #170c31;
/* rgb */ color: rgb(23, 12, 49);
/* oklch */ color: oklch(19.5% 0.070 292.4);
Tailwind
colors: {
  custom: {
    50: '#564b69',
    500: '#170c31',
    950: '#000000',
  },
}
SCSS
$custom: #170c31;
$custom-light: #564b69;
$custom-dark: #000000;
JSON
{
  "hex": "#170c31",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 49
  },
  "hsl": {
    "h": 257.838,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.19544,
    "c": 0.0699,
    "h": 292.4
  },
  "luminance": 0.00667
}

Semantic roles & 50–950 ramp

primary
#170C31
secondary
#5A6D2C
accent
#E444B4
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170C31

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

Preview Lab → · Contrast checker → · Palette generator →

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