#170F5D#170F5D

#170F5D is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.9% C 0.129 H 276.1°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#170F5D
RGBrgb(23, 15, 93)
HSLhsl(246, 72%, 21%)
HSVhsv(246, 84%, 36%)
CMYKcmyk(75.3%, 83.9%, 0%, 63.5%)
CIE-LABlab(11.37, 30.70, -44.45)
CIE-LCHlch(11.37, 54.02, 304.63°)
OKLaboklab(24.95% 0.0137 -0.1285)
OKLCHoklch(24.95% 0.129 276.1)
XYZxyz(2.4993, 1.3139, 10.4757)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F5D #555D0F
analogous
#0F2E5D #170F5D #3E0F5D
triadic
#170F5D #5D170F #0F5D17
tetradic
#170F5D #5D0F2E #555D0F #0F5D3E
square
#170F5D #5D0F2E #555D0F #0F5D3E
split-complementary
#170F5D #5D3E0F #2E5D0F
monochromatic
#07041A #0A0628 #170F5D #241792 #3120C6

Accessibility & contrast

On white

16.63
#170F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#170F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F5D
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F5D#FFFFFF#000000##FFFFFF
##170F5D1.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215F
Deuteranopia (green-blind)
#001B5C
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #170f5d;
/* rgb */ color: rgb(23, 15, 93);
/* oklch */ color: oklch(24.9% 0.129 276.1);
Tailwind
colors: {
  custom: {
    50: '#614f8c',
    500: '#170f5d',
    950: '#000000',
  },
}
SCSS
$custom: #170f5d;
$custom-light: #614f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#170f5d",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 246.154,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.24948,
    "c": 0.12923,
    "h": 276.1
  },
  "luminance": 0.01314
}

Semantic roles & 50–950 ramp

primary
#170F5D
secondary
#8C9631
accent
#EF39DC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #170F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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