#170A26#170A26

#170A26 is a very dark, muted violet. Relative luminance 0.005; OKLCH L 18.2% C 0.056 H 302.6°. Best body text is #FFFFFF at 18.96:1 contrast (WCAG AA passes).

Color values

HEX#170A26
RGBrgb(23, 10, 38)
HSLhsl(268, 58%, 9%)
HSVhsv(268, 74%, 15%)
CMYKcmyk(39.5%, 73.7%, 0%, 85.1%)
CIE-LABlab(4.87, 12.26, -15.84)
CIE-LCHlch(4.87, 20.03, 307.73°)
OKLaboklab(18.15% 0.0303 -0.0474)
OKLCHoklch(18.15% 0.056 302.6)
XYZxyz(0.8117, 0.5392, 1.8947)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A26 #19260A
analogous
#0A0B26 #170A26 #250A26
triadic
#170A26 #26170A #0A2617
tetradic
#170A26 #260A0B #19260A #0A2625
square
#170A26 #260A0B #19260A #0A2625
split-complementary
#170A26 #26250A #0B260A
monochromatic
#0F0618 #0F0618 #170A26 #341756 #522487

Accessibility & contrast

On white

18.96
#170A26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#170A26 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170A26
18.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A26#FFFFFF#000000##FFFFFF
##170A261.0018.961.1118.96
#FFFFFF18.961.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021027
Deuteranopia (green-blind)
#041025
Tritanopia (blue-blind)
#141016
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #170a26;
/* rgb */ color: rgb(23, 10, 38);
/* oklch */ color: oklch(18.2% 0.056 302.6);
Tailwind
colors: {
  custom: {
    50: '#544b60',
    500: '#170a26',
    950: '#000000',
  },
}
SCSS
$custom: #170a26;
$custom-light: #544b60;
$custom-dark: #000000;
JSON
{
  "hex": "#170a26",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 38
  },
  "hsl": {
    "h": 267.857,
    "s": 58.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.18151,
    "c": 0.05622,
    "h": 302.6
  },
  "luminance": 0.00539
}

Semantic roles & 50–950 ramp

primary
#170A26
secondary
#486229
accent
#E24699
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#030105
muted
#787779

Preview Lab

Preview with #170A26

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

Preview Lab → · Contrast checker → · Palette generator →

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