#170A47#170A47

#170A47 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.6% C 0.105 H 283.0°. Best body text is #FFFFFF at 17.94:1 contrast (WCAG AA passes).

Color values

HEX#170A47
RGBrgb(23, 10, 71)
HSLhsl(253, 75%, 16%)
HSVhsv(253, 86%, 28%)
CMYKcmyk(67.6%, 85.9%, 0%, 72.2%)
CIE-LABlab(7.71, 25.89, -35.39)
CIE-LCHlch(7.71, 43.85, 306.19°)
OKLaboklab(21.6% 0.0236 -0.1021)
OKLCHoklch(21.6% 0.105 283)
XYZxyz(1.5989, 0.8541, 6.0406)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A47 #3A470A
analogous
#0A1B47 #170A47 #350A47
triadic
#170A47 #47170A #0A4717
tetradic
#170A47 #470A1B #3A470A #0A4735
square
#170A47 #470A1B #3A470A #0A4735
split-complementary
#170A47 #47350A #1B470A
monochromatic
#09041B #09041B #170A47 #28127D #3A19B2

Accessibility & contrast

On white

17.94
#170A47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#170A47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170A47
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A47#FFFFFF#000000##FFFFFF
##170A471.0017.941.1717.94
#FFFFFF17.941.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001949
Deuteranopia (green-blind)
#001546
Tritanopia (blue-blind)
#001C28
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170a47;
/* rgb */ color: rgb(23, 10, 71);
/* oklch */ color: oklch(21.6% 0.105 283.0);
Tailwind
colors: {
  custom: {
    50: '#5c4b7b',
    500: '#170a47',
    950: '#000000',
  },
}
SCSS
$custom: #170a47;
$custom-light: #5c4b7b;
$custom-dark: #000000;
JSON
{
  "hex": "#170a47",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 71
  },
  "hsl": {
    "h": 252.787,
    "s": 75.309,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21598,
    "c": 0.10475,
    "h": 283
  },
  "luminance": 0.00854
}

Semantic roles & 50–950 ramp

primary
#170A47
secondary
#718429
accent
#F236CA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #170A47

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

Preview Lab → · Contrast checker → · Palette generator →

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