#170A48#170A48

#170A48 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.7% C 0.106 H 282.7°. Best body text is #FFFFFF at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#170A48
RGBrgb(23, 10, 72)
HSLhsl(253, 76%, 16%)
HSVhsv(253, 86%, 28%)
CMYKcmyk(68.1%, 86.1%, 0%, 71.8%)
CIE-LABlab(7.83, 26.25, -35.90)
CIE-LCHlch(7.83, 44.47, 306.17°)
OKLaboklab(21.72% 0.0232 -0.1035)
OKLCHoklch(21.72% 0.106 282.7)
XYZxyz(1.6312, 0.8670, 6.2110)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A48 #3B480A
analogous
#0A1C48 #170A48 #360A48
triadic
#170A48 #48170A #0A4817
tetradic
#170A48 #480A1C #3B480A #0A4836
square
#170A48 #480A1C #3B480A #0A4836
split-complementary
#170A48 #48360A #1C480A
monochromatic
#09041B #09041B #170A48 #28117E #3919B3

Accessibility & contrast

On white

17.90
#170A48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170A48
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A48#FFFFFF#000000##FFFFFF
##170A481.0017.901.1717.90
#FFFFFF17.901.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00194A
Deuteranopia (green-blind)
#001547
Tritanopia (blue-blind)
#001C29
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170a48;
/* rgb */ color: rgb(23, 10, 72);
/* oklch */ color: oklch(21.7% 0.106 282.7);
Tailwind
colors: {
  custom: {
    50: '#5c4b7c',
    500: '#170a48',
    950: '#000000',
  },
}
SCSS
$custom: #170a48;
$custom-light: #5c4b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#170a48",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 72
  },
  "hsl": {
    "h": 252.581,
    "s": 75.61,
    "l": 16.078
  },
  "oklch": {
    "l": 0.21717,
    "c": 0.10612,
    "h": 282.7
  },
  "luminance": 0.00867
}

Semantic roles & 50–950 ramp

primary
#170A48
secondary
#728529
accent
#F236CB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #170A48

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

Preview Lab → · Contrast checker → · Palette generator →

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