#170D38#170D38

#170D38 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.4% C 0.079 H 288.0°. Best body text is #FFFFFF at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#170D38
RGBrgb(23, 13, 56)
HSLhsl(254, 62%, 14%)
HSVhsv(254, 77%, 22%)
CMYKcmyk(58.9%, 76.8%, 0%, 78%)
CIE-LABlab(6.82, 18.40, -26.14)
CIE-LCHlch(6.82, 31.96, 305.14°)
OKLaboklab(20.42% 0.0244 -0.0753)
OKLCHoklch(20.42% 0.079 288)
XYZxyz(1.2109, 0.7555, 3.8226)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D38 #2E380D
analogous
#0D1838 #170D38 #2C0D38
triadic
#170D38 #38170D #0D3817
tetradic
#170D38 #380D18 #2E380D #0D382C
square
#170D38 #380D18 #2E380D #0D382C
split-complementary
#170D38 #382C0D #18380D
monochromatic
#0A0619 #0A0619 #170D38 #2B196A #40249B

Accessibility & contrast

On white

18.24
#170D38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#170D38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170D38
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D38#FFFFFF#000000##FFFFFF
##170D381.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001639
Deuteranopia (green-blind)
#001437
Tritanopia (blue-blind)
#0B1821
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170d38;
/* rgb */ color: rgb(23, 13, 56);
/* oklch */ color: oklch(20.4% 0.079 288.0);
Tailwind
colors: {
  custom: {
    50: '#584c6f',
    500: '#170d38',
    950: '#000000',
  },
}
SCSS
$custom: #170d38;
$custom-light: #584c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#170d38",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 56
  },
  "hsl": {
    "h": 253.953,
    "s": 62.319,
    "l": 13.529
  },
  "oklch": {
    "l": 0.20425,
    "c": 0.07913,
    "h": 288
  },
  "luminance": 0.00756
}

Semantic roles & 50–950 ramp

primary
#170D38
secondary
#63732D
accent
#E542BF
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #170D38

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

Preview Lab → · Contrast checker → · Palette generator →

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