#170A30#170A30

#170A30 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.1% C 0.072 H 294.3°. Best body text is #FFFFFF at 18.71:1 contrast (WCAG AA passes).

Color values

HEX#170A30
RGBrgb(23, 10, 48)
HSLhsl(261, 66%, 11%)
HSVhsv(261, 79%, 19%)
CMYKcmyk(52.1%, 79.2%, 0%, 81.2%)
CIE-LABlab(5.53, 16.57, -22.34)
CIE-LCHlch(5.53, 27.81, 306.57°)
OKLaboklab(19.07% 0.0295 -0.0653)
OKLCHoklch(19.07% 0.072 294.3)
XYZxyz(0.9952, 0.6126, 2.8615)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A30 #23300A
analogous
#0A1030 #170A30 #2A0A30
triadic
#170A30 #30170A #0A3017
tetradic
#170A30 #300A10 #23300A #0A302A
square
#170A30 #300A10 #23300A #0A302A
split-complementary
#170A30 #302A0A #10300A
monochromatic
#0C0519 #0C0519 #170A30 #2F1563 #481F95

Accessibility & contrast

On white

18.71
#170A30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#170A30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170A30
18.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A30#FFFFFF#000000##FFFFFF
##170A301.0018.711.1218.71
#FFFFFF18.711.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001331
Deuteranopia (green-blind)
#00122F
Tritanopia (blue-blind)
#10131B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #170a30;
/* rgb */ color: rgb(23, 10, 48);
/* oklch */ color: oklch(19.1% 0.072 294.3);
Tailwind
colors: {
  custom: {
    50: '#564a68',
    500: '#170a30',
    950: '#000000',
  },
}
SCSS
$custom: #170a30;
$custom-light: #564a68;
$custom-dark: #000000;
JSON
{
  "hex": "#170a30",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 48
  },
  "hsl": {
    "h": 260.526,
    "s": 65.517,
    "l": 11.373
  },
  "oklch": {
    "l": 0.19074,
    "c": 0.07169,
    "h": 294.3
  },
  "luminance": 0.00613
}

Semantic roles & 50–950 ramp

primary
#170A30
secondary
#566D29
accent
#E83FAF
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170A30

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

Preview Lab → · Contrast checker → · Palette generator →

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