#17042B#17042B

#17042B is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.4% C 0.076 H 301.8°. Best body text is #FFFFFF at 19.29:1 contrast (WCAG AA passes).

Color values

HEX#17042B
RGBrgb(23, 4, 43)
HSLhsl(269, 83%, 9%)
HSVhsv(269, 91%, 17%)
CMYKcmyk(46.5%, 90.7%, 0%, 83.1%)
CIE-LABlab(4.01, 16.85, -21.01)
CIE-LCHlch(4.01, 26.93, 308.73°)
OKLaboklab(17.38% 0.0401 -0.0646)
OKLCHoklch(17.38% 0.076 301.8)
XYZxyz(0.8327, 0.4434, 2.3267)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17042B #182B04
analogous
#04042B #17042B #2B042B
triadic
#17042B #2B1704 #042B17
tetradic
#17042B #2B0404 #182B04 #042B2B
square
#17042B #2B0404 #182B04 #042B2B
split-complementary
#17042B #2B2B04 #042B04
monochromatic
#0F031C #0F031C #17042B #350963 #530E9B

Accessibility & contrast

On white

19.29
#17042B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #17042B
19.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17042B#FFFFFF#000000##FFFFFF
##17042B1.0019.291.0919.29
#FFFFFF19.291.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2C
Deuteranopia (green-blind)
#000E2A
Tritanopia (blue-blind)
#130D16
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #17042b;
/* rgb */ color: rgb(23, 4, 43);
/* oklch */ color: oklch(17.4% 0.076 301.8);
Tailwind
colors: {
  custom: {
    50: '#554864',
    500: '#17042b',
    950: '#000000',
  },
}
SCSS
$custom: #17042b;
$custom-light: #554864;
$custom-dark: #000000;
JSON
{
  "hex": "#17042b",
  "rgb": {
    "r": 23,
    "g": 4,
    "b": 43
  },
  "hsl": {
    "h": 269.231,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.17376,
    "c": 0.07608,
    "h": 301.8
  },
  "luminance": 0.00443
}

Semantic roles & 50–950 ramp

primary
#17042B
secondary
#466E1D
accent
#F92E96
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030005
muted
#78777A

Preview Lab

Preview with #17042B

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

Preview Lab → · Contrast checker → · Palette generator →

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