#170A2A#170A2A

#170A2A is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.5% C 0.062 H 298.9°. Best body text is #FFFFFF at 18.86:1 contrast (WCAG AA passes).

Color values

HEX#170A2A
RGBrgb(23, 10, 42)
HSLhsl(264, 62%, 10%)
HSVhsv(264, 76%, 16%)
CMYKcmyk(45.2%, 76.2%, 0%, 83.5%)
CIE-LABlab(5.12, 13.96, -18.50)
CIE-LCHlch(5.12, 23.18, 307.04°)
OKLaboklab(18.51% 0.0302 -0.0547)
OKLCHoklch(18.51% 0.062 298.9)
XYZxyz(0.8797, 0.5664, 2.2530)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A2A #1D2A0A
analogous
#0A0D2A #170A2A #270A2A
triadic
#170A2A #2A170A #0A2A17
tetradic
#170A2A #2A0A0D #1D2A0A #0A2A27
square
#170A2A #2A0A0D #1D2A0A #0A2A27
split-complementary
#170A2A #2A270A #0D2A0A
monochromatic
#0E0619 #0E0619 #170A2A #32165B #4D228D

Accessibility & contrast

On white

18.86
#170A2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#170A2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170A2A
18.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A2A#FFFFFF#000000##FFFFFF
##170A2A1.0018.861.1118.86
#FFFFFF18.861.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112B
Deuteranopia (green-blind)
#021129
Tritanopia (blue-blind)
#131118
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #170a2a;
/* rgb */ color: rgb(23, 10, 42);
/* oklch */ color: oklch(18.5% 0.062 298.9);
Tailwind
colors: {
  custom: {
    50: '#554b63',
    500: '#170a2a',
    950: '#000000',
  },
}
SCSS
$custom: #170a2a;
$custom-light: #554b63;
$custom-dark: #000000;
JSON
{
  "hex": "#170a2a",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 42
  },
  "hsl": {
    "h": 264.375,
    "s": 61.538,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18505,
    "c": 0.06248,
    "h": 298.9
  },
  "luminance": 0.00566
}

Semantic roles & 50–950 ramp

primary
#170A2A
secondary
#4E6729
accent
#E543A3
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#030105
muted
#787779

Preview Lab

Preview with #170A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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