#17042C#17042C

#17042C is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.5% C 0.077 H 301.0°. Best body text is #FFFFFF at 19.26:1 contrast (WCAG AA passes).

Color values

HEX#17042C
RGBrgb(23, 4, 44)
HSLhsl(269, 83%, 9%)
HSVhsv(269, 91%, 17%)
CMYKcmyk(47.7%, 90.9%, 0%, 82.7%)
CIE-LABlab(4.07, 17.32, -21.66)
CIE-LCHlch(4.07, 27.73, 308.65°)
OKLaboklab(17.48% 0.0398 -0.0664)
OKLCHoklch(17.48% 0.077 301)
XYZxyz(0.8513, 0.4508, 2.4246)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17042C #192C04
analogous
#04052C #17042C #2B042C
triadic
#17042C #2C1704 #042C17
tetradic
#17042C #2C0405 #192C04 #042C2B
square
#17042C #2C0405 #192C04 #042C2B
split-complementary
#17042C #2C2B04 #052C04
monochromatic
#0F031C #0F031C #17042C #340964 #520E9C

Accessibility & contrast

On white

19.26
#17042C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #17042C
19.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17042C#FFFFFF#000000##FFFFFF
##17042C1.0019.261.0919.26
#FFFFFF19.261.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2D
Deuteranopia (green-blind)
#000E2B
Tritanopia (blue-blind)
#120D17
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #17042c;
/* rgb */ color: rgb(23, 4, 44);
/* oklch */ color: oklch(17.5% 0.077 301.0);
Tailwind
colors: {
  custom: {
    50: '#554865',
    500: '#17042c',
    950: '#000000',
  },
}
SCSS
$custom: #17042c;
$custom-light: #554865;
$custom-dark: #000000;
JSON
{
  "hex": "#17042c",
  "rgb": {
    "r": 23,
    "g": 4,
    "b": 44
  },
  "hsl": {
    "h": 268.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.17483,
    "c": 0.07738,
    "h": 301
  },
  "luminance": 0.00451
}

Semantic roles & 50–950 ramp

primary
#17042C
secondary
#486F1D
accent
#FA2E99
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030005
muted
#78777A

Preview Lab

Preview with #17042C

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

Preview Lab → · Contrast checker → · Palette generator →

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