#170338#170338

#170338 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.7% C 0.094 H 292.7°. Best body text is #FFFFFF at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#170338
RGBrgb(23, 3, 56)
HSLhsl(263, 90%, 12%)
HSVhsv(263, 95%, 22%)
CMYKcmyk(58.9%, 94.6%, 0%, 78%)
CIE-LABlab(4.81, 23.37, -29.39)
CIE-LCHlch(4.81, 37.55, 308.49°)
OKLaboklab(18.66% 0.0364 -0.0872)
OKLCHoklch(18.66% 0.094 292.7)
XYZxyz(1.0995, 0.5328, 3.7855)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170338 #243803
analogous
#030938 #170338 #320338
triadic
#170338 #381703 #033817
tetradic
#170338 #380309 #243803 #033832
square
#170338 #380309 #243803 #033832
split-complementary
#170338 #383203 #093803
monochromatic
#0C021D #0C021D #170338 #2F0672 #4709AC

Accessibility & contrast

On white

18.98
#170338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170338
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170338#FFFFFF#000000##FFFFFF
##1703381.0018.981.1118.98
#FFFFFF18.981.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001139
Deuteranopia (green-blind)
#000F37
Tritanopia (blue-blind)
#0C121E
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #170338;
/* rgb */ color: rgb(23, 3, 56);
/* oklch */ color: oklch(18.7% 0.094 292.7);
Tailwind
colors: {
  custom: {
    50: '#58476f',
    500: '#170338',
    950: '#000000',
  },
}
SCSS
$custom: #170338;
$custom-light: #58476f;
$custom-dark: #000000;
JSON
{
  "hex": "#170338",
  "rgb": {
    "r": 23,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 262.642,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.18664,
    "c": 0.09449,
    "h": 292.7
  },
  "luminance": 0.00533
}

Semantic roles & 50–950 ramp

primary
#170338
secondary
#577B1C
accent
#FF29AE
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #170338

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

Preview Lab → · Contrast checker → · Palette generator →

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