#170F50#170F50

#170F50 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.4% C 0.112 H 278.9°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#170F50
RGBrgb(23, 15, 80)
HSLhsl(247, 68%, 19%)
HSVhsv(247, 81%, 31%)
CMYKcmyk(71.2%, 81.3%, 0%, 68.6%)
CIE-LABlab(9.82, 26.09, -38.18)
CIE-LCHlch(9.82, 46.24, 304.35°)
OKLaboklab(23.4% 0.0173 -0.1102)
OKLCHoklch(23.4% 0.112 278.9)
XYZxyz(1.9717, 1.1028, 7.6968)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F50 #48500F
analogous
#0F2750 #170F50 #370F50
triadic
#170F50 #50170F #0F5017
tetradic
#170F50 #500F27 #48500F #0F5037
square
#170F50 #500F27 #48500F #0F5037
split-complementary
#170F50 #50370F #27500F
monochromatic
#07051A #08051C #170F50 #261984 #3522B7

Accessibility & contrast

On white

17.20
#170F50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#170F50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F50
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F50#FFFFFF#000000##FFFFFF
##170F501.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E52
Deuteranopia (green-blind)
#00184F
Tritanopia (blue-blind)
#00222E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #170f50;
/* rgb */ color: rgb(23, 15, 80);
/* oklch */ color: oklch(23.4% 0.112 278.9);
Tailwind
colors: {
  custom: {
    50: '#5e4e82',
    500: '#170f50',
    950: '#000000',
  },
}
SCSS
$custom: #170f50;
$custom-light: #5e4e82;
$custom-dark: #000000;
JSON
{
  "hex": "#170f50",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 80
  },
  "hsl": {
    "h": 247.385,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.23396,
    "c": 0.11157,
    "h": 278.9
  },
  "luminance": 0.01103
}

Semantic roles & 50–950 ramp

primary
#170F50
secondary
#7F8A31
accent
#EB3DD6
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05020A
muted
#79787C

Preview Lab

Preview with #170F50

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

Preview Lab → · Contrast checker → · Palette generator →

#170F50 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva