#170F58#170F58

#170F58 is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.3% C 0.123 H 277.1°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#170F58
RGBrgb(23, 15, 88)
HSLhsl(247, 71%, 20%)
HSVhsv(247, 83%, 35%)
CMYKcmyk(73.9%, 83%, 0%, 65.5%)
CIE-LABlab(10.76, 28.95, -42.08)
CIE-LCHlch(10.76, 51.08, 304.52°)
OKLaboklab(24.34% 0.0151 -0.1216)
OKLCHoklch(24.34% 0.123 277.1)
XYZxyz(2.2851, 1.2282, 9.3473)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F58 #50580F
analogous
#0F2C58 #170F58 #3B0F58
triadic
#170F58 #58170F #0F5817
tetradic
#170F58 #580F2C #50580F #0F583B
square
#170F58 #580F2C #50580F #0F583B
split-complementary
#170F58 #583B0F #2C580F
monochromatic
#07041A #090624 #170F58 #25188C #3221C1

Accessibility & contrast

On white

16.86
#170F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#170F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F58
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F58#FFFFFF#000000##FFFFFF
##170F581.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00205A
Deuteranopia (green-blind)
#001A57
Tritanopia (blue-blind)
#002533
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #170f58;
/* rgb */ color: rgb(23, 15, 88);
/* oklch */ color: oklch(24.3% 0.123 277.1);
Tailwind
colors: {
  custom: {
    50: '#604f88',
    500: '#170f58',
    950: '#000000',
  },
}
SCSS
$custom: #170f58;
$custom-light: #604f88;
$custom-dark: #000000;
JSON
{
  "hex": "#170f58",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 88
  },
  "hsl": {
    "h": 246.575,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.24342,
    "c": 0.12255,
    "h": 277.1
  },
  "luminance": 0.01228
}

Semantic roles & 50–950 ramp

primary
#170F58
secondary
#879231
accent
#EE3ADA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020B
muted
#7A787C

Preview Lab

Preview with #170F58

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

Preview Lab → · Contrast checker → · Palette generator →

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