#170638#170638

#170638 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.2% C 0.090 H 291.3°. Best body text is #FFFFFF at 18.76:1 contrast (WCAG AA passes).

Color values

HEX#170638
RGBrgb(23, 6, 56)
HSLhsl(260, 81%, 12%)
HSVhsv(260, 89%, 22%)
CMYKcmyk(58.9%, 89.3%, 0%, 78%)
CIE-LABlab(5.40, 21.94, -28.44)
CIE-LCHlch(5.40, 35.92, 307.65°)
OKLaboklab(19.21% 0.0326 -0.0834)
OKLCHoklch(19.21% 0.09 291.3)
XYZxyz(1.1321, 0.5979, 3.7964)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170638 #273806
analogous
#060E38 #170638 #300638
triadic
#170638 #381706 #063817
tetradic
#170638 #38060E #273806 #063830
square
#170638 #38060E #273806 #063830
split-complementary
#170638 #383006 #0E3806
monochromatic
#0B031C #0B031C #170638 #2E0C6F #4412A7

Accessibility & contrast

On white

18.76
#170638 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#170638 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170638
18.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170638#FFFFFF#000000##FFFFFF
##1706381.0018.761.1218.76
#FFFFFF18.761.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001339
Deuteranopia (green-blind)
#001137
Tritanopia (blue-blind)
#0C141E
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #170638;
/* rgb */ color: rgb(23, 6, 56);
/* oklch */ color: oklch(19.2% 0.090 291.3);
Tailwind
colors: {
  custom: {
    50: '#58486f',
    500: '#170638',
    950: '#000000',
  },
}
SCSS
$custom: #170638;
$custom-light: #58486f;
$custom-dark: #000000;
JSON
{
  "hex": "#170638",
  "rgb": {
    "r": 23,
    "g": 6,
    "b": 56
  },
  "hsl": {
    "h": 260.4,
    "s": 80.645,
    "l": 12.157
  },
  "oklch": {
    "l": 0.19212,
    "c": 0.08956,
    "h": 291.3
  },
  "luminance": 0.00598
}

Semantic roles & 50–950 ramp

primary
#170638
secondary
#5B7821
accent
#F731B4
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #170638

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

Preview Lab → · Contrast checker → · Palette generator →

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