#170C5B#170C5B

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

Color values

HEX#170C5B
RGBrgb(23, 12, 91)
HSLhsl(248, 77%, 20%)
HSVhsv(248, 87%, 36%)
CMYKcmyk(74.7%, 86.8%, 0%, 64.3%)
CIE-LABlab(10.56, 31.65, -44.45)
CIE-LCHlch(10.56, 54.57, 305.45°)
OKLaboklab(24.31% 0.0158 -0.1284)
OKLCHoklch(24.31% 0.129 277)
XYZxyz(2.3725, 1.2002, 10.0021)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C5B #505B0C
analogous
#0C295B #170C5B #3E0C5B
triadic
#170C5B #5B170C #0C5B17
tetradic
#170C5B #5B0C29 #505B0C #0C5B3E
square
#170C5B #5B0C29 #505B0C #0C5B3E
split-complementary
#170C5B #5B3E0C #295B0C
monochromatic
#07041B #090525 #170C5B #251391 #321AC7

Accessibility & contrast

On white

16.94
#170C5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#170C5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C5B
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C5B#FFFFFF#000000##FFFFFF
##170C5B1.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00205D
Deuteranopia (green-blind)
#00195A
Tritanopia (blue-blind)
#002534
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #170c5b;
/* rgb */ color: rgb(23, 12, 91);
/* oklch */ color: oklch(24.3% 0.129 277.0);
Tailwind
colors: {
  custom: {
    50: '#614d8a',
    500: '#170c5b',
    950: '#000000',
  },
}
SCSS
$custom: #170c5b;
$custom-light: #614d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#170c5b",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 91
  },
  "hsl": {
    "h": 248.354,
    "s": 76.699,
    "l": 20.196
  },
  "oklch": {
    "l": 0.24308,
    "c": 0.12942,
    "h": 277
  },
  "luminance": 0.012
}

Semantic roles & 50–950 ramp

primary
#170C5B
secondary
#87962D
accent
#F335D9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06010C
muted
#7A777D

Preview Lab

Preview with #170C5B

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

Preview Lab → · Contrast checker → · Palette generator →

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