#170028#170028

#170028 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 16.1% C 0.083 H 307.1°. Best body text is #FFFFFF at 19.68:1 contrast (WCAG AA passes).

Color values

HEX#170028
RGBrgb(23, 0, 40)
HSLhsl(275, 100%, 8%)
HSVhsv(275, 100%, 16%)
CMYKcmyk(42.5%, 100%, 0%, 84.3%)
CIE-LABlab(3.03, 17.10, -20.25)
CIE-LCHlch(3.03, 26.51, 310.19°)
OKLaboklab(16.1% 0.0499 -0.0659)
OKLCHoklch(16.1% 0.083 307.1)
XYZxyz(0.7363, 0.3354, 2.0330)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170028 #112800
analogous
#030028 #170028 #280025
triadic
#170028 #281700 #002817
tetradic
#170028 #280300 #112800 #002528
square
#170028 #280300 #112800 #002528
split-complementary
#170028 #252800 #002803
monochromatic
#12001F #12001F #170028 #3A0065 #5D00A2

Accessibility & contrast

On white

19.68
#170028 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#170028 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170028
19.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170028#FFFFFF#000000##FFFFFF
##1700281.0019.681.0719.68
#FFFFFF19.681.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A29
Deuteranopia (green-blind)
#000B27
Tritanopia (blue-blind)
#140813
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #170028;
/* rgb */ color: rgb(23, 0, 40);
/* oklch */ color: oklch(16.1% 0.083 307.1);
Tailwind
colors: {
  custom: {
    50: '#544662',
    500: '#170028',
    950: '#000000',
  },
}
SCSS
$custom: #170028;
$custom-light: #544662;
$custom-dark: #000000;
JSON
{
  "hex": "#170028",
  "rgb": {
    "r": 23,
    "g": 0,
    "b": 40
  },
  "hsl": {
    "h": 274.5,
    "s": 100,
    "l": 7.843
  },
  "oklch": {
    "l": 0.16104,
    "c": 0.0827,
    "h": 307.1
  },
  "luminance": 0.00335
}

Semantic roles & 50–950 ramp

primary
#170028
secondary
#3B7014
accent
#FF2984
background
#F4F3F5
surface
#E8E5EA
border
#C4C1C6
text
#030005
muted
#787779

Preview Lab

Preview with #170028

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

Preview Lab → · Contrast checker → · Palette generator →

#170028 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva