#170F5F#170F5F

#170F5F is a dark, vivid blue. Relative luminance 0.013; OKLCH L 25.2% C 0.132 H 275.7°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#170F5F
RGBrgb(23, 15, 95)
HSLhsl(246, 73%, 22%)
HSVhsv(246, 84%, 37%)
CMYKcmyk(75.8%, 84.2%, 0%, 62.7%)
CIE-LABlab(11.62, 31.39, -45.38)
CIE-LCHlch(11.62, 55.18, 304.67°)
OKLaboklab(25.19% 0.0132 -0.1312)
OKLCHoklch(25.19% 0.132 275.7)
XYZxyz(2.5891, 1.3498, 10.9483)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F5F #575F0F
analogous
#0F2F5F #170F5F #3F0F5F
triadic
#170F5F #5F170F #0F5F17
tetradic
#170F5F #5F0F2F #575F0F #0F5F3F
square
#170F5F #5F0F2F #575F0F #0F5F3F
split-complementary
#170F5F #5F3F0F #2F5F0F
monochromatic
#06041A #0A072A #170F5F #241794 #3120C9

Accessibility & contrast

On white

16.54
#170F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#170F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F5F
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F5F#FFFFFF#000000##FFFFFF
##170F5F1.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002261
Deuteranopia (green-blind)
#001B5E
Tritanopia (blue-blind)
#002737
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #170f5f;
/* rgb */ color: rgb(23, 15, 95);
/* oklch */ color: oklch(25.2% 0.132 275.7);
Tailwind
colors: {
  custom: {
    50: '#624f8d',
    500: '#170f5f',
    950: '#000000',
  },
}
SCSS
$custom: #170f5f;
$custom-light: #624f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#170f5f",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 246,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25193,
    "c": 0.13187,
    "h": 275.7
  },
  "luminance": 0.0135
}

Semantic roles & 50–950 ramp

primary
#170F5F
secondary
#8E9832
accent
#EF38DD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #170F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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