#170A2E#170A2E

#170A2E is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.9% C 0.069 H 295.7°. Best body text is #FFFFFF at 18.76:1 contrast (WCAG AA passes).

Color values

HEX#170A2E
RGBrgb(23, 10, 46)
HSLhsl(262, 64%, 11%)
HSVhsv(262, 78%, 18%)
CMYKcmyk(50%, 78.3%, 0%, 82%)
CIE-LABlab(5.39, 15.70, -21.08)
CIE-LCHlch(5.39, 26.28, 306.68°)
OKLaboklab(18.88% 0.0298 -0.0618)
OKLCHoklch(18.88% 0.069 295.7)
XYZxyz(0.9549, 0.5965, 2.6491)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A2E #212E0A
analogous
#0A0F2E #170A2E #290A2E
triadic
#170A2E #2E170A #0A2E17
tetradic
#170A2E #2E0A0F #212E0A #0A2E29
square
#170A2E #2E0A0F #212E0A #0A2E29
split-complementary
#170A2E #2E290A #0F2E0A
monochromatic
#0D0519 #0D0519 #170A2E #301560 #492093

Accessibility & contrast

On white

18.76
#170A2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#170A2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170A2E
18.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A2E#FFFFFF#000000##FFFFFF
##170A2E1.0018.761.1218.76
#FFFFFF18.761.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122F
Deuteranopia (green-blind)
#00112D
Tritanopia (blue-blind)
#11121A
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #170a2e;
/* rgb */ color: rgb(23, 10, 46);
/* oklch */ color: oklch(18.9% 0.069 295.7);
Tailwind
colors: {
  custom: {
    50: '#564a67',
    500: '#170a2e',
    950: '#000000',
  },
}
SCSS
$custom: #170a2e;
$custom-light: #564a67;
$custom-dark: #000000;
JSON
{
  "hex": "#170a2e",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 46
  },
  "hsl": {
    "h": 261.667,
    "s": 64.286,
    "l": 10.98
  },
  "oklch": {
    "l": 0.1888,
    "c": 0.06865,
    "h": 295.7
  },
  "luminance": 0.00596
}

Semantic roles & 50–950 ramp

primary
#170A2E
secondary
#536B29
accent
#E741AB
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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