#170F3B#170F3B

#170F3B is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.081 H 285.5°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#170F3B
RGBrgb(23, 15, 59)
HSLhsl(251, 59%, 15%)
HSVhsv(251, 75%, 23%)
CMYKcmyk(61%, 74.6%, 0%, 76.9%)
CIE-LABlab(7.58, 18.33, -27.07)
CIE-LCHlch(7.58, 32.70, 304.10°)
OKLaboklab(21.11% 0.0216 -0.0777)
OKLCHoklch(21.11% 0.081 285.5)
XYZxyz(1.3134, 0.8395, 4.2297)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F3B #333B0F
analogous
#0F1D3B #170F3B #2D0F3B
triadic
#170F3B #3B170F #0F3B17
tetradic
#170F3B #3B0F1D #333B0F #0F3B2D
square
#170F3B #3B0F1D #333B0F #0F3B2D
split-complementary
#170F3B #3B2D0F #1D3B0F
monochromatic
#0A0618 #0A0618 #170F3B #2A1B6C #3D289D

Accessibility & contrast

On white

17.98
#170F3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170F3B
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F3B#FFFFFF#000000##FFFFFF
##170F3B1.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183C
Deuteranopia (green-blind)
#00153A
Tritanopia (blue-blind)
#081A23
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170f3b;
/* rgb */ color: rgb(23, 15, 59);
/* oklch */ color: oklch(21.1% 0.081 285.5);
Tailwind
colors: {
  custom: {
    50: '#584d71',
    500: '#170f3b',
    950: '#000000',
  },
}
SCSS
$custom: #170f3b;
$custom-light: #584d71;
$custom-dark: #000000;
JSON
{
  "hex": "#170f3b",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 59
  },
  "hsl": {
    "h": 250.909,
    "s": 59.459,
    "l": 14.51
  },
  "oklch": {
    "l": 0.21105,
    "c": 0.08068,
    "h": 285.5
  },
  "luminance": 0.0084
}

Semantic roles & 50–950 ramp

primary
#170F3B
secondary
#697530
accent
#E345C6
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040108
muted
#79777B

Preview Lab

Preview with #170F3B

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

Preview Lab → · Contrast checker → · Palette generator →

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