#170F3E#170F3E

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

Color values

HEX#170F3E
RGBrgb(23, 15, 62)
HSLhsl(250, 61%, 15%)
HSVhsv(250, 76%, 24%)
CMYKcmyk(62.9%, 75.8%, 0%, 75.7%)
CIE-LABlab(7.87, 19.47, -28.76)
CIE-LCHlch(7.87, 34.73, 304.11°)
OKLaboklab(21.41% 0.0212 -0.0826)
OKLCHoklch(21.41% 0.085 284.4)
XYZxyz(1.3934, 0.8715, 4.6513)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F3E #363E0F
analogous
#0F1E3E #170F3E #2F0F3E
triadic
#170F3E #3E170F #0F3E17
tetradic
#170F3E #3E0F1E #363E0F #0F3E2F
square
#170F3E #3E0F1E #363E0F #0F3E2F
split-complementary
#170F3E #3E2F0F #1E3E0F
monochromatic
#090619 #090619 #170F3E #291B6F #3C27A1

Accessibility & contrast

On white

17.88
#170F3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170F3E
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F3E#FFFFFF#000000##FFFFFF
##170F3E1.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193F
Deuteranopia (green-blind)
#00163D
Tritanopia (blue-blind)
#061B24
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170f3e;
/* rgb */ color: rgb(23, 15, 62);
/* oklch */ color: oklch(21.4% 0.085 284.4);
Tailwind
colors: {
  custom: {
    50: '#594d74',
    500: '#170f3e',
    950: '#000000',
  },
}
SCSS
$custom: #170f3e;
$custom-light: #594d74;
$custom-dark: #000000;
JSON
{
  "hex": "#170f3e",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 62
  },
  "hsl": {
    "h": 250.213,
    "s": 61.039,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21411,
    "c": 0.08531,
    "h": 284.4
  },
  "luminance": 0.00872
}

Semantic roles & 50–950 ramp

primary
#170F3E
secondary
#6C7830
accent
#E444C9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170F3E

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

Preview Lab → · Contrast checker → · Palette generator →

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