#170A2D#170A2D

#170A2D is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.8% C 0.067 H 296.5°. Best body text is #FFFFFF at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#170A2D
RGBrgb(23, 10, 45)
HSLhsl(262, 64%, 11%)
HSVhsv(262, 78%, 18%)
CMYKcmyk(48.9%, 77.8%, 0%, 82.4%)
CIE-LABlab(5.32, 15.26, -20.44)
CIE-LCHlch(5.32, 25.51, 306.75°)
OKLaboklab(18.78% 0.0299 -0.0601)
OKLCHoklch(18.78% 0.067 296.5)
XYZxyz(0.9354, 0.5887, 2.5465)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A2D #202D0A
analogous
#0A0E2D #170A2D #280A2D
triadic
#170A2D #2D170A #0A2D17
tetradic
#170A2D #2D0A0E #202D0A #0A2D28
square
#170A2D #2D0A0E #202D0A #0A2D28
split-complementary
#170A2D #2D280A #0E2D0A
monochromatic
#0D0619 #0D0619 #170A2D #31155F #4A2091

Accessibility & contrast

On white

18.79
#170A2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170A2D
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A2D#FFFFFF#000000##FFFFFF
##170A2D1.0018.791.1218.79
#FFFFFF18.791.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122E
Deuteranopia (green-blind)
#00112C
Tritanopia (blue-blind)
#12121A
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #170a2d;
/* rgb */ color: rgb(23, 10, 45);
/* oklch */ color: oklch(18.8% 0.067 296.5);
Tailwind
colors: {
  custom: {
    50: '#554b66',
    500: '#170a2d',
    950: '#000000',
  },
}
SCSS
$custom: #170a2d;
$custom-light: #554b66;
$custom-dark: #000000;
JSON
{
  "hex": "#170a2d",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 45
  },
  "hsl": {
    "h": 262.286,
    "s": 63.636,
    "l": 10.784
  },
  "oklch": {
    "l": 0.18784,
    "c": 0.06712,
    "h": 296.5
  },
  "luminance": 0.00589
}

Semantic roles & 50–950 ramp

primary
#170A2D
secondary
#526A29
accent
#E741A9
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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