#170838#170838

#170838 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.6% C 0.086 H 290.4°. Best body text is #FFFFFF at 18.61:1 contrast (WCAG AA passes).

Color values

HEX#170838
RGBrgb(23, 8, 56)
HSLhsl(259, 75%, 13%)
HSVhsv(259, 86%, 22%)
CMYKcmyk(58.9%, 85.7%, 0%, 78%)
CIE-LABlab(5.79, 20.98, -27.81)
CIE-LCHlch(5.79, 34.83, 307.03°)
OKLaboklab(19.56% 0.0302 -0.081)
OKLCHoklch(19.56% 0.086 290.4)
XYZxyz(1.1538, 0.6413, 3.8036)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170838 #293808
analogous
#081138 #170838 #2F0838
triadic
#170838 #381708 #083817
tetradic
#170838 #380811 #293808 #08382F
square
#170838 #380811 #293808 #08382F
split-complementary
#170838 #382F08 #113808
monochromatic
#0B041B #0B041B #170838 #2D106E #4317A3

Accessibility & contrast

On white

18.61
#170838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#170838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170838
18.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170838#FFFFFF#000000##FFFFFF
##1708381.0018.611.1318.61
#FFFFFF18.611.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001439
Deuteranopia (green-blind)
#001237
Tritanopia (blue-blind)
#0B151F
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #170838;
/* rgb */ color: rgb(23, 8, 56);
/* oklch */ color: oklch(19.6% 0.086 290.4);
Tailwind
colors: {
  custom: {
    50: '#58496f',
    500: '#170838',
    950: '#000000',
  },
}
SCSS
$custom: #170838;
$custom-light: #58496f;
$custom-dark: #000000;
JSON
{
  "hex": "#170838",
  "rgb": {
    "r": 23,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 258.75,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.19561,
    "c": 0.08649,
    "h": 290.4
  },
  "luminance": 0.00641
}

Semantic roles & 50–950 ramp

primary
#170838
secondary
#5D7725
accent
#F236B7
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #170838

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

Preview Lab → · Contrast checker → · Palette generator →

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