#170F30#170F30

#170F30 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.063 H 290.8°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#170F30
RGBrgb(23, 15, 48)
HSLhsl(255, 52%, 12%)
HSVhsv(255, 69%, 19%)
CMYKcmyk(52.1%, 68.7%, 0%, 81.2%)
CIE-LABlab(6.66, 13.95, -20.54)
CIE-LCHlch(6.66, 24.83, 304.19°)
OKLaboklab(20.06% 0.0223 -0.0589)
OKLCHoklch(20.06% 0.063 290.8)
XYZxyz(1.0575, 0.7372, 2.8823)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F30 #28300F
analogous
#0F1830 #170F30 #270F30
triadic
#170F30 #30170F #0F3017
tetradic
#170F30 #300F18 #28300F #0F3027
square
#170F30 #300F18 #28300F #0F3027
split-complementary
#170F30 #30270F #18300F
monochromatic
#0B0717 #0B0717 #170F30 #2D1E5F #442C8D

Accessibility & contrast

On white

18.30
#170F30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#170F30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F30
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F30#FFFFFF#000000##FFFFFF
##170F301.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011531
Deuteranopia (green-blind)
#02142F
Tritanopia (blue-blind)
#10161D
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170f30;
/* rgb */ color: rgb(23, 15, 48);
/* oklch */ color: oklch(20.1% 0.063 290.8);
Tailwind
colors: {
  custom: {
    50: '#564d68',
    500: '#170f30',
    950: '#000000',
  },
}
SCSS
$custom: #170f30;
$custom-light: #564d68;
$custom-dark: #000000;
JSON
{
  "hex": "#170f30",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 48
  },
  "hsl": {
    "h": 254.545,
    "s": 52.381,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20059,
    "c": 0.06301,
    "h": 290.8
  },
  "luminance": 0.00737
}

Semantic roles & 50–950 ramp

primary
#170F30
secondary
#5C6A31
accent
#DC4CB9
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170F30

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

Preview Lab → · Contrast checker → · Palette generator →

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