#170737#170737

#170737 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.3% C 0.087 H 291.5°. Best body text is #FFFFFF at 18.72:1 contrast (WCAG AA passes).

Color values

HEX#170737
RGBrgb(23, 7, 55)
HSLhsl(260, 77%, 12%)
HSVhsv(260, 87%, 22%)
CMYKcmyk(58.2%, 87.3%, 0%, 78.4%)
CIE-LABlab(5.51, 21.02, -27.53)
CIE-LCHlch(5.51, 34.64, 307.36°)
OKLaboklab(19.28% 0.0317 -0.0806)
OKLCHoklch(19.28% 0.087 291.5)
XYZxyz(1.1187, 0.6099, 3.6725)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170737 #273707
analogous
#070F37 #170737 #2F0737
triadic
#170737 #371707 #073717
tetradic
#170737 #37070F #273707 #07372F
square
#170737 #37070F #273707 #07372F
split-complementary
#170737 #372F07 #0F3707
monochromatic
#0B031B #0B031B #170737 #2E0E6D #4415A4

Accessibility & contrast

On white

18.72
#170737 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170737
18.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170737#FFFFFF#000000##FFFFFF
##1707371.0018.721.1218.72
#FFFFFF18.721.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170737;
/* rgb */ color: rgb(23, 7, 55);
/* oklch */ color: oklch(19.3% 0.087 291.5);
Tailwind
colors: {
  custom: {
    50: '#58496e',
    500: '#170737',
    950: '#000000',
  },
}
SCSS
$custom: #170737;
$custom-light: #58496e;
$custom-dark: #000000;
JSON
{
  "hex": "#170737",
  "rgb": {
    "r": 23,
    "g": 7,
    "b": 55
  },
  "hsl": {
    "h": 260,
    "s": 77.419,
    "l": 12.157
  },
  "oklch": {
    "l": 0.19276,
    "c": 0.08663,
    "h": 291.5
  },
  "luminance": 0.0061
}

Semantic roles & 50–950 ramp

primary
#170737
secondary
#5B7723
accent
#F434B4
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#030107
muted
#78777A

Preview Lab

Preview with #170737

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

Preview Lab → · Contrast checker → · Palette generator →

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