#170A33#170A33

#170A33 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.4% C 0.076 H 292.4°. Best body text is #FFFFFF at 18.62:1 contrast (WCAG AA passes).

Color values

HEX#170A33
RGBrgb(23, 10, 51)
HSLhsl(259, 67%, 12%)
HSVhsv(259, 80%, 20%)
CMYKcmyk(54.9%, 80.4%, 0%, 80%)
CIE-LABlab(5.76, 17.87, -24.19)
CIE-LCHlch(5.76, 30.07, 306.46°)
OKLaboklab(19.38% 0.029 -0.0705)
OKLCHoklch(19.38% 0.076 292.4)
XYZxyz(1.0593, 0.6382, 3.1987)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A33 #26330A
analogous
#0A1233 #170A33 #2C0A33
triadic
#170A33 #33170A #0A3317
tetradic
#170A33 #330A12 #26330A #0A332C
square
#170A33 #330A12 #26330A #0A332C
split-complementary
#170A33 #332C0A #12330A
monochromatic
#0C051A #0C051A #170A33 #2E1466 #451E99

Accessibility & contrast

On white

18.62
#170A33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#170A33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170A33
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A33#FFFFFF#000000##FFFFFF
##170A331.0018.621.1318.62
#FFFFFF18.621.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001334
Deuteranopia (green-blind)
#001232
Tritanopia (blue-blind)
#0F141D
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #170a33;
/* rgb */ color: rgb(23, 10, 51);
/* oklch */ color: oklch(19.4% 0.076 292.4);
Tailwind
colors: {
  custom: {
    50: '#574a6b',
    500: '#170a33',
    950: '#000000',
  },
}
SCSS
$custom: #170a33;
$custom-light: #574a6b;
$custom-dark: #000000;
JSON
{
  "hex": "#170a33",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 51
  },
  "hsl": {
    "h": 259.024,
    "s": 67.213,
    "l": 11.961
  },
  "oklch": {
    "l": 0.19375,
    "c": 0.0762,
    "h": 292.4
  },
  "luminance": 0.00638
}

Semantic roles & 50–950 ramp

primary
#170A33
secondary
#5A7028
accent
#EA3EB3
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170A33

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

Preview Lab → · Contrast checker → · Palette generator →

#170A33 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva