#170738#170738

#170738 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.4% C 0.088 H 290.9°. Best body text is #FFFFFF at 18.68:1 contrast (WCAG AA passes).

Color values

HEX#170738
RGBrgb(23, 7, 56)
HSLhsl(260, 78%, 12%)
HSVhsv(260, 88%, 22%)
CMYKcmyk(58.9%, 87.5%, 0%, 78%)
CIE-LABlab(5.60, 21.46, -28.12)
CIE-LCHlch(5.60, 35.38, 307.35°)
OKLaboklab(19.39% 0.0314 -0.0822)
OKLCHoklch(19.39% 0.088 290.9)
XYZxyz(1.1429, 0.6196, 3.8000)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170738 #283807
analogous
#070F38 #170738 #300738
triadic
#170738 #381707 #073817
tetradic
#170738 #38070F #283807 #073830
square
#170738 #38070F #283807 #073830
split-complementary
#170738 #383007 #0F3807
monochromatic
#0B031B #0B031B #170738 #2D0E6E #4415A5

Accessibility & contrast

On white

18.68
#170738 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170738
18.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170738#FFFFFF#000000##FFFFFF
##1707381.0018.681.1218.68
#FFFFFF18.681.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170738;
/* rgb */ color: rgb(23, 7, 56);
/* oklch */ color: oklch(19.4% 0.088 290.9);
Tailwind
colors: {
  custom: {
    50: '#58496f',
    500: '#170738',
    950: '#000000',
  },
}
SCSS
$custom: #170738;
$custom-light: #58496f;
$custom-dark: #000000;
JSON
{
  "hex": "#170738",
  "rgb": {
    "r": 23,
    "g": 7,
    "b": 56
  },
  "hsl": {
    "h": 259.592,
    "s": 77.778,
    "l": 12.353
  },
  "oklch": {
    "l": 0.19388,
    "c": 0.088,
    "h": 290.9
  },
  "luminance": 0.0062
}

Semantic roles & 50–950 ramp

primary
#170738
secondary
#5C7823
accent
#F434B5
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040107
muted
#79777A

Preview Lab

Preview with #170738

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

Preview Lab → · Contrast checker → · Palette generator →

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