#170C2E#170C2E

#170C2E is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.3% C 0.065 H 294.4°. Best body text is #FFFFFF at 18.61:1 contrast (WCAG AA passes).

Color values

HEX#170C2E
RGBrgb(23, 12, 46)
HSLhsl(259, 59%, 11%)
HSVhsv(259, 74%, 18%)
CMYKcmyk(50%, 73.9%, 0%, 82%)
CIE-LABlab(5.80, 14.77, -20.42)
CIE-LCHlch(5.80, 25.20, 305.88°)
OKLaboklab(19.26% 0.0269 -0.0593)
OKLCHoklch(19.26% 0.065 294.4)
XYZxyz(0.9778, 0.6423, 2.6567)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C2E #232E0C
analogous
#0C122E #170C2E #280C2E
triadic
#170C2E #2E170C #0C2E17
tetradic
#170C2E #2E0C12 #232E0C #0C2E28
square
#170C2E #2E0C12 #232E0C #0C2E28
split-complementary
#170C2E #2E280C #122E0C
monochromatic
#0C0618 #0C0618 #170C2E #2F195F #48258F

Accessibility & contrast

On white

18.61
#170C2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170C2E
18.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C2E#FFFFFF#000000##FFFFFF
##170C2E1.0018.611.1318.61
#FFFFFF18.611.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132F
Deuteranopia (green-blind)
#00122D
Tritanopia (blue-blind)
#11141B
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #170c2e;
/* rgb */ color: rgb(23, 12, 46);
/* oklch */ color: oklch(19.3% 0.065 294.4);
Tailwind
colors: {
  custom: {
    50: '#564c67',
    500: '#170c2e',
    950: '#000000',
  },
}
SCSS
$custom: #170c2e;
$custom-light: #564c67;
$custom-dark: #000000;
JSON
{
  "hex": "#170c2e",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 46
  },
  "hsl": {
    "h": 259.412,
    "s": 58.621,
    "l": 11.373
  },
  "oklch": {
    "l": 0.19261,
    "c": 0.06516,
    "h": 294.4
  },
  "luminance": 0.00642
}

Semantic roles & 50–950 ramp

primary
#170C2E
secondary
#566A2C
accent
#E246AF
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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