#170C3E#170C3E

#170C3E is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.090 H 285.8°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#170C3E
RGBrgb(23, 12, 62)
HSLhsl(253, 68%, 15%)
HSVhsv(253, 81%, 24%)
CMYKcmyk(62.9%, 80.6%, 0%, 75.7%)
CIE-LABlab(7.16, 21.38, -29.92)
CIE-LCHlch(7.16, 36.77, 305.55°)
OKLaboklab(20.88% 0.0244 -0.0862)
OKLCHoklch(20.88% 0.09 285.8)
XYZxyz(1.3541, 0.7928, 4.6382)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C3E #333E0C
analogous
#0C1A3E #170C3E #300C3E
triadic
#170C3E #3E170C #0C3E17
tetradic
#170C3E #3E0C1A #333E0C #0C3E30
square
#170C3E #3E0C1A #333E0C #0C3E30
split-complementary
#170C3E #3E300C #1A3E0C
monochromatic
#0A051A #0A051A #170C3E #2A1671 #3D20A5

Accessibility & contrast

On white

18.13
#170C3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#170C3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C3E
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C3E#FFFFFF#000000##FFFFFF
##170C3E1.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173F
Deuteranopia (green-blind)
#00143D
Tritanopia (blue-blind)
#061924
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170c3e;
/* rgb */ color: rgb(23, 12, 62);
/* oklch */ color: oklch(20.9% 0.090 285.8);
Tailwind
colors: {
  custom: {
    50: '#594c74',
    500: '#170c3e',
    950: '#000000',
  },
}
SCSS
$custom: #170c3e;
$custom-light: #594c74;
$custom-dark: #000000;
JSON
{
  "hex": "#170c3e",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 62
  },
  "hsl": {
    "h": 253.2,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.2088,
    "c": 0.08958,
    "h": 285.8
  },
  "luminance": 0.00793
}

Semantic roles & 50–950 ramp

primary
#170C3E
secondary
#697A2C
accent
#EA3DC4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170C3E

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

Preview Lab → · Contrast checker → · Palette generator →

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