#170F54#170F54

#170F54 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.9% C 0.117 H 278.0°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#170F54
RGBrgb(23, 15, 84)
HSLhsl(247, 70%, 19%)
HSVhsv(247, 82%, 33%)
CMYKcmyk(72.6%, 82.1%, 0%, 67.1%)
CIE-LABlab(10.29, 27.53, -40.15)
CIE-LCHlch(10.29, 48.68, 304.43°)
OKLaboklab(23.87% 0.0162 -0.116)
OKLCHoklch(23.87% 0.117 278)
XYZxyz(2.1239, 1.1637, 8.4985)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F54 #4C540F
analogous
#0F2954 #170F54 #3A0F54
triadic
#170F54 #54170F #0F5417
tetradic
#170F54 #540F29 #4C540F #0F543A
square
#170F54 #540F29 #4C540F #0F543A
split-complementary
#170F54 #543A0F #29540F
monochromatic
#07051A #090620 #170F54 #251888 #3322BC

Accessibility & contrast

On white

17.03
#170F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#170F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F54
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F54#FFFFFF#000000##FFFFFF
##170F541.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F56
Deuteranopia (green-blind)
#001953
Tritanopia (blue-blind)
#002331
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #170f54;
/* rgb */ color: rgb(23, 15, 84);
/* oklch */ color: oklch(23.9% 0.117 278.0);
Tailwind
colors: {
  custom: {
    50: '#5f4f85',
    500: '#170f54',
    950: '#000000',
  },
}
SCSS
$custom: #170f54;
$custom-light: #5f4f85;
$custom-dark: #000000;
JSON
{
  "hex": "#170f54",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 246.957,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.23865,
    "c": 0.11711,
    "h": 278
  },
  "luminance": 0.01164
}

Semantic roles & 50–950 ramp

primary
#170F54
secondary
#838E31
accent
#ED3BD8
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #170F54

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

Preview Lab → · Contrast checker → · Palette generator →

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