#170239#170239

#170239 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.6% C 0.097 H 292.5°. Best body text is #FFFFFF at 19.02:1 contrast (WCAG AA passes).

Color values

HEX#170239
RGBrgb(23, 2, 57)
HSLhsl(263, 93%, 12%)
HSVhsv(263, 96%, 22%)
CMYKcmyk(59.6%, 96.5%, 0%, 77.6%)
CIE-LABlab(4.71, 24.31, -30.30)
CIE-LCHlch(4.71, 38.84, 308.74°)
OKLaboklab(18.6% 0.0373 -0.09)
OKLCHoklch(18.6% 0.097 292.5)
XYZxyz(1.1134, 0.5209, 3.9120)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170239 #243902
analogous
#020939 #170239 #330239
triadic
#170239 #391702 #023917
tetradic
#170239 #390209 #243902 #023933
square
#170239 #390209 #243902 #023933
split-complementary
#170239 #393302 #093902
monochromatic
#0C011E #0C011E #170239 #2F0474 #4706AF

Accessibility & contrast

On white

19.02
#170239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#170239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170239
19.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170239#FFFFFF#000000##FFFFFF
##1702391.0019.021.1019.02
#FFFFFF19.021.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00113A
Deuteranopia (green-blind)
#000F38
Tritanopia (blue-blind)
#0B121E
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #170239;
/* rgb */ color: rgb(23, 2, 57);
/* oklch */ color: oklch(18.6% 0.097 292.5);
Tailwind
colors: {
  custom: {
    50: '#584670',
    500: '#170239',
    950: '#000000',
  },
}
SCSS
$custom: #170239;
$custom-light: #584670;
$custom-dark: #000000;
JSON
{
  "hex": "#170239",
  "rgb": {
    "r": 23,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 262.909,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.18598,
    "c": 0.09742,
    "h": 292.5
  },
  "luminance": 0.00521
}

Semantic roles & 50–950 ramp

primary
#170239
secondary
#577D1A
accent
#FF29AD
background
#F5F3F6
surface
#E9E5EC
border
#C5C1C7
text
#040007
muted
#79777A

Preview Lab

Preview with #170239

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

Preview Lab → · Contrast checker → · Palette generator →

#170239 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva