#170428#170428

#170428 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.1% C 0.072 H 304.6°. Best body text is #FFFFFF at 19.37:1 contrast (WCAG AA passes).

Color values

HEX#170428
RGBrgb(23, 4, 40)
HSLhsl(272, 82%, 9%)
HSVhsv(272, 90%, 16%)
CMYKcmyk(42.5%, 90%, 0%, 84.3%)
CIE-LABlab(3.81, 15.50, -19.02)
CIE-LCHlch(3.81, 24.54, 309.18°)
OKLaboklab(17.06% 0.041 -0.0594)
OKLCHoklch(17.06% 0.072 304.6)
XYZxyz(0.7797, 0.4222, 2.0475)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170428 #152804
analogous
#050428 #170428 #280427
triadic
#170428 #281704 #042817
tetradic
#170428 #280504 #152804 #042728
square
#170428 #280504 #152804 #042728
split-complementary
#170428 #272804 #042805
monochromatic
#10031C #10031C #170428 #370A60 #570F97

Accessibility & contrast

On white

19.37
#170428 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#170428 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170428
19.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170428#FFFFFF#000000##FFFFFF
##1704281.0019.371.0819.37
#FFFFFF19.371.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D29
Deuteranopia (green-blind)
#000E27
Tritanopia (blue-blind)
#140C15
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #170428;
/* rgb */ color: rgb(23, 4, 40);
/* oklch */ color: oklch(17.1% 0.072 304.6);
Tailwind
colors: {
  custom: {
    50: '#544862',
    500: '#170428',
    950: '#000000',
  },
}
SCSS
$custom: #170428;
$custom-light: #544862;
$custom-dark: #000000;
JSON
{
  "hex": "#170428",
  "rgb": {
    "r": 23,
    "g": 4,
    "b": 40
  },
  "hsl": {
    "h": 271.667,
    "s": 81.818,
    "l": 8.627
  },
  "oklch": {
    "l": 0.17063,
    "c": 0.07218,
    "h": 304.6
  },
  "luminance": 0.00422
}

Semantic roles & 50–950 ramp

primary
#170428
secondary
#426B1D
accent
#F8308E
background
#F4F4F5
surface
#E8E6EA
border
#C4C2C6
text
#030005
muted
#787779

Preview Lab

Preview with #170428

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

Preview Lab → · Contrast checker → · Palette generator →

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