#17042E#17042E

#17042E is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.7% C 0.080 H 299.3°. Best body text is #FFFFFF at 19.21:1 contrast (WCAG AA passes).

Color values

HEX#17042E
RGBrgb(23, 4, 46)
HSLhsl(267, 84%, 10%)
HSVhsv(267, 91%, 18%)
CMYKcmyk(50%, 91.3%, 0%, 82%)
CIE-LABlab(4.21, 18.26, -22.95)
CIE-LCHlch(4.21, 29.33, 308.51°)
OKLaboklab(17.7% 0.0391 -0.0697)
OKLCHoklch(17.7% 0.08 299.3)
XYZxyz(0.8898, 0.4662, 2.6274)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17042E #1B2E04
analogous
#04062E #17042E #2C042E
triadic
#17042E #2E1704 #042E17
tetradic
#17042E #2E0406 #1B2E04 #042E2C
square
#17042E #2E0406 #1B2E04 #042E2C
split-complementary
#17042E #2E2C04 #062E04
monochromatic
#0E021C #0E021C #17042E #330966 #4F0E9F

Accessibility & contrast

On white

19.21
#17042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #17042E
19.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17042E#FFFFFF#000000##FFFFFF
##17042E1.0019.211.0919.21
#FFFFFF19.211.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2F
Deuteranopia (green-blind)
#000E2D
Tritanopia (blue-blind)
#110E18
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #17042e;
/* rgb */ color: rgb(23, 4, 46);
/* oklch */ color: oklch(17.7% 0.080 299.3);
Tailwind
colors: {
  custom: {
    50: '#554867',
    500: '#17042e',
    950: '#000000',
  },
}
SCSS
$custom: #17042e;
$custom-light: #554867;
$custom-dark: #000000;
JSON
{
  "hex": "#17042e",
  "rgb": {
    "r": 23,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 267.143,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.17701,
    "c": 0.07996,
    "h": 299.3
  },
  "luminance": 0.00466
}

Semantic roles & 50–950 ramp

primary
#17042E
secondary
#4B711D
accent
#FA2E9E
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #17042E

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

Preview Lab → · Contrast checker → · Palette generator →

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