#170538#170538

#170538 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.0% C 0.091 H 291.8°. Best body text is #FFFFFF at 18.83:1 contrast (WCAG AA passes).

Color values

HEX#170538
RGBrgb(23, 5, 56)
HSLhsl(261, 84%, 12%)
HSVhsv(261, 91%, 22%)
CMYKcmyk(58.9%, 91.1%, 0%, 78%)
CIE-LABlab(5.20, 22.42, -28.76)
CIE-LCHlch(5.20, 36.46, 307.94°)
OKLaboklab(19.03% 0.0338 -0.0846)
OKLCHoklch(19.03% 0.091 291.8)
XYZxyz(1.1212, 0.5762, 3.7927)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170538 #263805
analogous
#050D38 #170538 #310538
triadic
#170538 #381705 #053817
tetradic
#170538 #38050D #263805 #053831
square
#170538 #38050D #263805 #053831
split-complementary
#170538 #383105 #0D3805
monochromatic
#0C031C #0C031C #170538 #2E0A70 #450FA8

Accessibility & contrast

On white

18.83
#170538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#170538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170538
18.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170538#FFFFFF#000000##FFFFFF
##1705381.0018.831.1218.83
#FFFFFF18.831.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001239
Deuteranopia (green-blind)
#001037
Tritanopia (blue-blind)
#0C131E
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #170538;
/* rgb */ color: rgb(23, 5, 56);
/* oklch */ color: oklch(19.0% 0.091 291.8);
Tailwind
colors: {
  custom: {
    50: '#58486f',
    500: '#170538',
    950: '#000000',
  },
}
SCSS
$custom: #170538;
$custom-light: #58486f;
$custom-dark: #000000;
JSON
{
  "hex": "#170538",
  "rgb": {
    "r": 23,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 261.176,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.19033,
    "c": 0.09116,
    "h": 291.8
  },
  "luminance": 0.00576
}

Semantic roles & 50–950 ramp

primary
#170538
secondary
#5A7920
accent
#FA2EB2
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #170538

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

Preview Lab → · Contrast checker → · Palette generator →

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