#170F5B#170F5B

#170F5B is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.7% C 0.127 H 276.5°. Best body text is #FFFFFF at 16.72:1 contrast (WCAG AA passes).

Color values

HEX#170F5B
RGBrgb(23, 15, 91)
HSLhsl(246, 72%, 21%)
HSVhsv(246, 84%, 36%)
CMYKcmyk(74.7%, 83.5%, 0%, 64.3%)
CIE-LABlab(11.13, 30.00, -43.51)
CIE-LCHlch(11.13, 52.85, 304.59°)
OKLaboklab(24.7% 0.0143 -0.1258)
OKLCHoklch(24.7% 0.127 276.5)
XYZxyz(2.4119, 1.2789, 10.0153)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F5B #535B0F
analogous
#0F2D5B #170F5B #3D0F5B
triadic
#170F5B #5B170F #0F5B17
tetradic
#170F5B #5B0F2D #535B0F #0F5B3D
square
#170F5B #5B0F2D #535B0F #0F5B3D
split-complementary
#170F5B #5B3D0F #2D5B0F
monochromatic
#07041A #0A0626 #170F5B #241890 #3220C4

Accessibility & contrast

On white

16.72
#170F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170F5B
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F5B#FFFFFF#000000##FFFFFF
##170F5B1.0016.721.2616.72
#FFFFFF16.721.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215D
Deuteranopia (green-blind)
#001A5A
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #170f5b;
/* rgb */ color: rgb(23, 15, 91);
/* oklch */ color: oklch(24.7% 0.127 276.5);
Tailwind
colors: {
  custom: {
    50: '#604f8a',
    500: '#170f5b',
    950: '#000000',
  },
}
SCSS
$custom: #170f5b;
$custom-light: #604f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#170f5b",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 246.316,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.24704,
    "c": 0.12657,
    "h": 276.5
  },
  "luminance": 0.01279
}

Semantic roles & 50–950 ramp

primary
#170F5B
secondary
#8A9531
accent
#EE39DB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #170F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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