#170E40#170E40

#170E40 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.4% C 0.090 H 284.1°. Best body text is #FFFFFF at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#170E40
RGBrgb(23, 14, 64)
HSLhsl(251, 64%, 15%)
HSVhsv(251, 78%, 25%)
CMYKcmyk(64.1%, 78.1%, 0%, 74.9%)
CIE-LABlab(7.83, 20.90, -30.26)
CIE-LCHlch(7.83, 36.77, 304.63°)
OKLaboklab(21.44% 0.0219 -0.0871)
OKLCHoklch(21.44% 0.09 284.1)
XYZxyz(1.4355, 0.8663, 4.9411)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170E40 #37400E
analogous
#0E1E40 #170E40 #300E40
triadic
#170E40 #40170E #0E4017
tetradic
#170E40 #400E1E #37400E #0E4030
square
#170E40 #400E1E #37400E #0E4030
split-complementary
#170E40 #40300E #1E400E
monochromatic
#090519 #090519 #170E40 #291972 #3B24A4

Accessibility & contrast

On white

17.90
#170E40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#170E40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170E40
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170E40#FFFFFF#000000##FFFFFF
##170E401.0017.901.1717.90
#FFFFFF17.901.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#00163F
Tritanopia (blue-blind)
#041B25
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170e40;
/* rgb */ color: rgb(23, 14, 64);
/* oklch */ color: oklch(21.4% 0.090 284.1);
Tailwind
colors: {
  custom: {
    50: '#5a4d75',
    500: '#170e40',
    950: '#000000',
  },
}
SCSS
$custom: #170e40;
$custom-light: #5a4d75;
$custom-dark: #000000;
JSON
{
  "hex": "#170e40",
  "rgb": {
    "r": 23,
    "g": 14,
    "b": 64
  },
  "hsl": {
    "h": 250.8,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.2144,
    "c": 0.08976,
    "h": 284.1
  },
  "luminance": 0.00866
}

Semantic roles & 50–950 ramp

primary
#170E40
secondary
#6D7B2F
accent
#E741C9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170E40

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

Preview Lab → · Contrast checker → · Palette generator →

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