#170339#170339

#170339 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.8% C 0.096 H 292.1°. Best body text is #FFFFFF at 18.94:1 contrast (WCAG AA passes).

Color values

HEX#170339
RGBrgb(23, 3, 57)
HSLhsl(262, 90%, 12%)
HSVhsv(262, 95%, 22%)
CMYKcmyk(59.6%, 94.7%, 0%, 77.6%)
CIE-LABlab(4.90, 23.83, -29.98)
CIE-LCHlch(4.90, 38.30, 308.48°)
OKLaboklab(18.79% 0.036 -0.0887)
OKLCHoklch(18.79% 0.096 292.1)
XYZxyz(1.1242, 0.5426, 3.9156)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170339 #253903
analogous
#030A39 #170339 #320339
triadic
#170339 #391703 #033917
tetradic
#170339 #39030A #253903 #033932
square
#170339 #39030A #253903 #033932
split-complementary
#170339 #393203 #0A3903
monochromatic
#0C021D #0C021D #170339 #2E0673 #4609AD

Accessibility & contrast

On white

18.94
#170339 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#170339 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170339
18.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170339#FFFFFF#000000##FFFFFF
##1703391.0018.941.1118.94
#FFFFFF18.941.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170339;
/* rgb */ color: rgb(23, 3, 57);
/* oklch */ color: oklch(18.8% 0.096 292.1);
Tailwind
colors: {
  custom: {
    50: '#584770',
    500: '#170339',
    950: '#000000',
  },
}
SCSS
$custom: #170339;
$custom-light: #584770;
$custom-dark: #000000;
JSON
{
  "hex": "#170339",
  "rgb": {
    "r": 23,
    "g": 3,
    "b": 57
  },
  "hsl": {
    "h": 262.222,
    "s": 90,
    "l": 11.765
  },
  "oklch": {
    "l": 0.18786,
    "c": 0.09573,
    "h": 292.1
  },
  "luminance": 0.00543
}

Semantic roles & 50–950 ramp

primary
#170339
secondary
#587C1C
accent
#FF29B0
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #170339

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

Preview Lab → · Contrast checker → · Palette generator →

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