#17042D#17042D

#17042D is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.6% C 0.079 H 300.1°. Best body text is #FFFFFF at 19.24:1 contrast (WCAG AA passes).

Color values

HEX#17042D
RGBrgb(23, 4, 45)
HSLhsl(268, 84%, 10%)
HSVhsv(268, 91%, 18%)
CMYKcmyk(48.9%, 91.1%, 0%, 82.4%)
CIE-LABlab(4.14, 17.79, -22.31)
CIE-LCHlch(4.14, 28.53, 308.57°)
OKLaboklab(17.59% 0.0395 -0.068)
OKLCHoklch(17.59% 0.079 300.1)
XYZxyz(0.8703, 0.4584, 2.5248)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17042D #1A2D04
analogous
#04062D #17042D #2C042D
triadic
#17042D #2D1704 #042D17
tetradic
#17042D #2D0406 #1A2D04 #042D2C
square
#17042D #2D0406 #1A2D04 #042D2C
split-complementary
#17042D #2D2C04 #062D04
monochromatic
#0E021C #0E021C #17042D #340965 #500E9D

Accessibility & contrast

On white

19.24
#17042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#17042D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17042D
19.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17042D#FFFFFF#000000##FFFFFF
##17042D1.0019.241.0919.24
#FFFFFF19.241.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2E
Deuteranopia (green-blind)
#000E2C
Tritanopia (blue-blind)
#120E18
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #17042d;
/* rgb */ color: rgb(23, 4, 45);
/* oklch */ color: oklch(17.6% 0.079 300.1);
Tailwind
colors: {
  custom: {
    50: '#554866',
    500: '#17042d',
    950: '#000000',
  },
}
SCSS
$custom: #17042d;
$custom-light: #554866;
$custom-dark: #000000;
JSON
{
  "hex": "#17042d",
  "rgb": {
    "r": 23,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 267.805,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.17591,
    "c": 0.07867,
    "h": 300.1
  },
  "luminance": 0.00458
}

Semantic roles & 50–950 ramp

primary
#17042D
secondary
#49701D
accent
#FA2E9B
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #17042D

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

Preview Lab → · Contrast checker → · Palette generator →

#17042D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva