#17042F#17042F

#17042F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.8% C 0.081 H 298.5°. Best body text is #FFFFFF at 19.18:1 contrast (WCAG AA passes).

Color values

HEX#17042F
RGBrgb(23, 4, 47)
HSLhsl(267, 84%, 10%)
HSVhsv(267, 91%, 18%)
CMYKcmyk(51.1%, 91.5%, 0%, 81.6%)
CIE-LABlab(4.28, 18.73, -23.58)
CIE-LCHlch(4.28, 30.12, 308.46°)
OKLaboklab(17.81% 0.0388 -0.0714)
OKLCHoklch(17.81% 0.081 298.5)
XYZxyz(0.9097, 0.4742, 2.7324)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17042F #1C2F04
analogous
#04062F #17042F #2D042F
triadic
#17042F #2F1704 #042F17
tetradic
#17042F #2F0406 #1C2F04 #042F2D
square
#17042F #2F0406 #1C2F04 #042F2D
split-complementary
#17042F #2F2D04 #062F04
monochromatic
#0E021C #0E021C #17042F #330967 #4E0EA0

Accessibility & contrast

On white

19.18
#17042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #17042F
19.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17042F#FFFFFF#000000##FFFFFF
##17042F1.0019.181.0919.18
#FFFFFF19.181.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#000E2E
Tritanopia (blue-blind)
#110F19
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #17042f;
/* rgb */ color: rgb(23, 4, 47);
/* oklch */ color: oklch(17.8% 0.081 298.5);
Tailwind
colors: {
  custom: {
    50: '#564868',
    500: '#17042f',
    950: '#000000',
  },
}
SCSS
$custom: #17042f;
$custom-light: #564868;
$custom-dark: #000000;
JSON
{
  "hex": "#17042f",
  "rgb": {
    "r": 23,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 266.512,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.17811,
    "c": 0.08125,
    "h": 298.5
  },
  "luminance": 0.00474
}

Semantic roles & 50–950 ramp

primary
#17042F
secondary
#4C721D
accent
#FB2DA0
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #17042F

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

Preview Lab → · Contrast checker → · Palette generator →

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