#170E2F#170E2F

#170E2F is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.8% C 0.063 H 292.2°. Best body text is #FFFFFF at 18.42:1 contrast (WCAG AA passes).

Color values

HEX#170E2F
RGBrgb(23, 14, 47)
HSLhsl(256, 54%, 12%)
HSVhsv(256, 70%, 18%)
CMYKcmyk(51.1%, 70.2%, 0%, 81.6%)
CIE-LABlab(6.34, 14.13, -20.31)
CIE-LCHlch(6.34, 24.75, 304.82°)
OKLaboklab(19.76% 0.0239 -0.0585)
OKLCHoklch(19.76% 0.063 292.2)
XYZxyz(1.0233, 0.7014, 2.7702)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170E2F #262F0E
analogous
#0E162F #170E2F #280E2F
triadic
#170E2F #2F170E #0E2F17
tetradic
#170E2F #2F0E16 #262F0E #0E2F28
square
#170E2F #2F0E16 #262F0E #0E2F28
split-complementary
#170E2F #2F280E #162F0E
monochromatic
#0C0718 #0C0718 #170E2F #2E1C5E #452A8D

Accessibility & contrast

On white

18.42
#170E2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#170E2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170E2F
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170E2F#FFFFFF#000000##FFFFFF
##170E2F1.0018.421.1418.42
#FFFFFF18.421.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001530
Deuteranopia (green-blind)
#01132E
Tritanopia (blue-blind)
#10151C
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #170e2f;
/* rgb */ color: rgb(23, 14, 47);
/* oklch */ color: oklch(19.8% 0.063 292.2);
Tailwind
colors: {
  custom: {
    50: '#564d68',
    500: '#170e2f',
    950: '#000000',
  },
}
SCSS
$custom: #170e2f;
$custom-light: #564d68;
$custom-dark: #000000;
JSON
{
  "hex": "#170e2f",
  "rgb": {
    "r": 23,
    "g": 14,
    "b": 47
  },
  "hsl": {
    "h": 256.364,
    "s": 54.098,
    "l": 11.961
  },
  "oklch": {
    "l": 0.19759,
    "c": 0.06317,
    "h": 292.2
  },
  "luminance": 0.00701
}

Semantic roles & 50–950 ramp

primary
#170E2F
secondary
#5A692F
accent
#DD4AB5
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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