#170F5A#170F5A

#170F5A is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.6% C 0.125 H 276.7°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#170F5A
RGBrgb(23, 15, 90)
HSLhsl(246, 71%, 21%)
HSVhsv(246, 83%, 35%)
CMYKcmyk(74.4%, 83.3%, 0%, 64.7%)
CIE-LABlab(11.01, 29.65, -43.04)
CIE-LCHlch(11.01, 52.26, 304.56°)
OKLaboklab(24.58% 0.0146 -0.1244)
OKLCHoklch(24.58% 0.125 276.7)
XYZxyz(2.3690, 1.2618, 9.7896)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F5A #525A0F
analogous
#0F2C5A #170F5A #3C0F5A
triadic
#170F5A #5A170F #0F5A17
tetradic
#170F5A #5A0F2C #525A0F #0F5A3C
square
#170F5A #5A0F2C #525A0F #0F5A3C
split-complementary
#170F5A #5A3C0F #2C5A0F
monochromatic
#07041A #0A0626 #170F5A #24188E #3220C3

Accessibility & contrast

On white

16.77
#170F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170F5A
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F5A#FFFFFF#000000##FFFFFF
##170F5A1.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215C
Deuteranopia (green-blind)
#001A59
Tritanopia (blue-blind)
#002534
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #170f5a;
/* rgb */ color: rgb(23, 15, 90);
/* oklch */ color: oklch(24.6% 0.125 276.7);
Tailwind
colors: {
  custom: {
    50: '#604f8a',
    500: '#170f5a',
    950: '#000000',
  },
}
SCSS
$custom: #170f5a;
$custom-light: #604f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#170f5a",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 246.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.24583,
    "c": 0.12523,
    "h": 276.7
  },
  "luminance": 0.01262
}

Semantic roles & 50–950 ramp

primary
#170F5A
secondary
#899431
accent
#EE3ADB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #170F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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