#170F51#170F51

#170F51 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.5% C 0.113 H 278.7°. Best body text is #FFFFFF at 17.16:1 contrast (WCAG AA passes).

Color values

HEX#170F51
RGBrgb(23, 15, 81)
HSLhsl(247, 69%, 19%)
HSVhsv(247, 81%, 32%)
CMYKcmyk(71.6%, 81.5%, 0%, 68.2%)
CIE-LABlab(9.94, 26.45, -38.67)
CIE-LCHlch(9.94, 46.85, 304.37°)
OKLaboklab(23.51% 0.017 -0.1117)
OKLCHoklch(23.51% 0.113 278.7)
XYZxyz(2.0089, 1.1177, 7.8929)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F51 #49510F
analogous
#0F2851 #170F51 #380F51
triadic
#170F51 #51170F #0F5117
tetradic
#170F51 #510F28 #49510F #0F5138
square
#170F51 #510F28 #49510F #0F5138
split-complementary
#170F51 #51380F #28510F
monochromatic
#07051A #08051D #170F51 #261985 #3422B8

Accessibility & contrast

On white

17.16
#170F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170F51
17.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F51#FFFFFF#000000##FFFFFF
##170F511.0017.161.2217.16
#FFFFFF17.161.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E53
Deuteranopia (green-blind)
#001950
Tritanopia (blue-blind)
#00222F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #170f51;
/* rgb */ color: rgb(23, 15, 81);
/* oklch */ color: oklch(23.5% 0.113 278.7);
Tailwind
colors: {
  custom: {
    50: '#5e4e83',
    500: '#170f51',
    950: '#000000',
  },
}
SCSS
$custom: #170f51;
$custom-light: #5e4e83;
$custom-dark: #000000;
JSON
{
  "hex": "#170f51",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 247.273,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.23513,
    "c": 0.11297,
    "h": 278.7
  },
  "luminance": 0.01118
}

Semantic roles & 50–950 ramp

primary
#170F51
secondary
#808B31
accent
#EC3CD6
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #170F51

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

Preview Lab → · Contrast checker → · Palette generator →

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