#170A2F#170A2F

#170A2F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.0% C 0.070 H 295.0°. Best body text is #FFFFFF at 18.74:1 contrast (WCAG AA passes).

Color values

HEX#170A2F
RGBrgb(23, 10, 47)
HSLhsl(261, 65%, 11%)
HSVhsv(261, 79%, 18%)
CMYKcmyk(51.1%, 78.7%, 0%, 81.6%)
CIE-LABlab(5.46, 16.13, -21.71)
CIE-LCHlch(5.46, 27.05, 306.62°)
OKLaboklab(18.98% 0.0297 -0.0636)
OKLCHoklch(18.98% 0.07 295)
XYZxyz(0.9748, 0.6045, 2.7541)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A2F #222F0A
analogous
#0A0F2F #170A2F #290A2F
triadic
#170A2F #2F170A #0A2F17
tetradic
#170A2F #2F0A0F #222F0A #0A2F29
square
#170A2F #2F0A0F #222F0A #0A2F29
split-complementary
#170A2F #2F290A #0F2F0A
monochromatic
#0C0519 #0C0519 #170A2F #301561 #481F94

Accessibility & contrast

On white

18.74
#170A2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170A2F
18.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A2F#FFFFFF#000000##FFFFFF
##170A2F1.0018.741.1218.74
#FFFFFF18.741.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001230
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#11131B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #170a2f;
/* rgb */ color: rgb(23, 10, 47);
/* oklch */ color: oklch(19.0% 0.070 295.0);
Tailwind
colors: {
  custom: {
    50: '#564a68',
    500: '#170a2f',
    950: '#000000',
  },
}
SCSS
$custom: #170a2f;
$custom-light: #564a68;
$custom-dark: #000000;
JSON
{
  "hex": "#170a2f",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 47
  },
  "hsl": {
    "h": 261.081,
    "s": 64.912,
    "l": 11.176
  },
  "oklch": {
    "l": 0.18976,
    "c": 0.07017,
    "h": 295
  },
  "luminance": 0.00604
}

Semantic roles & 50–950 ramp

primary
#170A2F
secondary
#546C29
accent
#E840AD
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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