#170A38#170A38

#170A38 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.9% C 0.084 H 289.5°. Best body text is #FFFFFF at 18.47:1 contrast (WCAG AA passes).

Color values

HEX#170A38
RGBrgb(23, 10, 56)
HSLhsl(257, 70%, 13%)
HSVhsv(257, 82%, 22%)
CMYKcmyk(58.9%, 82.1%, 0%, 78%)
CIE-LABlab(6.18, 20.00, -27.17)
CIE-LCHlch(6.18, 33.74, 306.36°)
OKLaboklab(19.9% 0.0279 -0.0788)
OKLCHoklch(19.9% 0.084 289.5)
XYZxyz(1.1755, 0.6847, 3.8108)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A38 #2B380A
analogous
#0A1438 #170A38 #2E0A38
triadic
#170A38 #38170A #0A3817
tetradic
#170A38 #380A14 #2B380A #0A382E
square
#170A38 #380A14 #2B380A #0A382E
split-complementary
#170A38 #382E0A #14380A
monochromatic
#0B051A #0B051A #170A38 #2C136C #421DA0

Accessibility & contrast

On white

18.47
#170A38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170A38
18.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A38#FFFFFF#000000##FFFFFF
##170A381.0018.471.1418.47
#FFFFFF18.471.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001539
Deuteranopia (green-blind)
#001337
Tritanopia (blue-blind)
#0B1620
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #170a38;
/* rgb */ color: rgb(23, 10, 56);
/* oklch */ color: oklch(19.9% 0.084 289.5);
Tailwind
colors: {
  custom: {
    50: '#584a6f',
    500: '#170a38',
    950: '#000000',
  },
}
SCSS
$custom: #170a38;
$custom-light: #584a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#170a38",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 56
  },
  "hsl": {
    "h": 256.957,
    "s": 69.697,
    "l": 12.941
  },
  "oklch": {
    "l": 0.19898,
    "c": 0.08358,
    "h": 289.5
  },
  "luminance": 0.00685
}

Semantic roles & 50–950 ramp

primary
#170A38
secondary
#607528
accent
#ED3BBA
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #170A38

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

Preview Lab → · Contrast checker → · Palette generator →

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