#170A37#170A37

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

Color values

HEX#170A37
RGBrgb(23, 10, 55)
HSLhsl(257, 69%, 13%)
HSVhsv(257, 82%, 22%)
CMYKcmyk(58.2%, 81.8%, 0%, 78.4%)
CIE-LABlab(6.10, 19.58, -26.58)
CIE-LCHlch(6.10, 33.02, 306.38°)
OKLaboklab(19.79% 0.0282 -0.0771)
OKLCHoklch(19.79% 0.082 290)
XYZxyz(1.1513, 0.6750, 3.6833)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A37 #2A370A
analogous
#0A1437 #170A37 #2D0A37
triadic
#170A37 #37170A #0A3717
tetradic
#170A37 #370A14 #2A370A #0A372D
square
#170A37 #370A14 #2A370A #0A372D
split-complementary
#170A37 #372D0A #14370A
monochromatic
#0B051A #0B051A #170A37 #2D136B #421D9F

Accessibility & contrast

On white

18.50
#170A37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170A37
18.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A37#FFFFFF#000000##FFFFFF
##170A371.0018.501.1418.50
#FFFFFF18.501.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001438
Deuteranopia (green-blind)
#001236
Tritanopia (blue-blind)
#0C161F
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #170a37;
/* rgb */ color: rgb(23, 10, 55);
/* oklch */ color: oklch(19.8% 0.082 290.0);
Tailwind
colors: {
  custom: {
    50: '#584a6e',
    500: '#170a37',
    950: '#000000',
  },
}
SCSS
$custom: #170a37;
$custom-light: #584a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#170a37",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 55
  },
  "hsl": {
    "h": 257.333,
    "s": 69.231,
    "l": 12.745
  },
  "oklch": {
    "l": 0.19792,
    "c": 0.08212,
    "h": 290
  },
  "luminance": 0.00675
}

Semantic roles & 50–950 ramp

primary
#170A37
secondary
#5E7428
accent
#EC3CB9
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #170A37

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

Preview Lab → · Contrast checker → · Palette generator →

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