#170F5E#170F5E

#170F5E is a dark, vivid blue. Relative luminance 0.013; OKLCH L 25.1% C 0.131 H 275.9°. Best body text is #FFFFFF at 16.58:1 contrast (WCAG AA passes).

Color values

HEX#170F5E
RGBrgb(23, 15, 94)
HSLhsl(246, 72%, 21%)
HSVhsv(246, 84%, 37%)
CMYKcmyk(75.5%, 84%, 0%, 63.1%)
CIE-LABlab(11.50, 31.05, -44.92)
CIE-LCHlch(11.50, 54.60, 304.65°)
OKLaboklab(25.07% 0.0134 -0.1298)
OKLCHoklch(25.07% 0.131 275.9)
XYZxyz(2.5439, 1.3317, 10.7105)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F5E #565E0F
analogous
#0F2F5E #170F5E #3F0F5E
triadic
#170F5E #5E170F #0F5E17
tetradic
#170F5E #5E0F2F #565E0F #0F5E3F
square
#170F5E #5E0F2F #565E0F #0F5E3F
split-complementary
#170F5E #5E3F0F #2F5E0F
monochromatic
#06041A #0A0729 #170F5E #241793 #3120C8

Accessibility & contrast

On white

16.58
#170F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170F5E
16.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F5E#FFFFFF#000000##FFFFFF
##170F5E1.0016.581.2716.58
#FFFFFF16.581.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002260
Deuteranopia (green-blind)
#001B5D
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #170f5e;
/* rgb */ color: rgb(23, 15, 94);
/* oklch */ color: oklch(25.1% 0.131 275.9);
Tailwind
colors: {
  custom: {
    50: '#614f8d',
    500: '#170f5e',
    950: '#000000',
  },
}
SCSS
$custom: #170f5e;
$custom-light: #614f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#170f5e",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 94
  },
  "hsl": {
    "h": 246.076,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.2507,
    "c": 0.13054,
    "h": 275.9
  },
  "luminance": 0.01332
}

Semantic roles & 50–950 ramp

primary
#170F5E
secondary
#8D9731
accent
#EF39DD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #170F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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