#170F62#170F62

#170F62 is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.6% C 0.136 H 275.2°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#170F62
RGBrgb(23, 15, 98)
HSLhsl(246, 73%, 22%)
HSVhsv(246, 85%, 38%)
CMYKcmyk(76.5%, 84.7%, 0%, 61.6%)
CIE-LABlab(11.99, 32.43, -46.77)
CIE-LCHlch(11.99, 56.91, 304.74°)
OKLaboklab(25.56% 0.0123 -0.1352)
OKLCHoklch(25.56% 0.136 275.2)
XYZxyz(2.7281, 1.4054, 11.6804)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F62 #5A620F
analogous
#0F3162 #170F62 #410F62
triadic
#170F62 #62170F #0F6217
tetradic
#170F62 #620F31 #5A620F #0F6241
square
#170F62 #620F31 #5A620F #0F6241
split-complementary
#170F62 #62410F #31620F
monochromatic
#06041B #0B072D #170F62 #231797 #301FCC

Accessibility & contrast

On white

16.39
#170F62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#170F62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F62
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F62#FFFFFF#000000##FFFFFF
##170F621.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002364
Deuteranopia (green-blind)
#001C61
Tritanopia (blue-blind)
#002939
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #170f62;
/* rgb */ color: rgb(23, 15, 98);
/* oklch */ color: oklch(25.6% 0.136 275.2);
Tailwind
colors: {
  custom: {
    50: '#625090',
    500: '#170f62',
    950: '#000000',
  },
}
SCSS
$custom: #170f62;
$custom-light: #625090;
$custom-dark: #000000;
JSON
{
  "hex": "#170f62",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 98
  },
  "hsl": {
    "h": 245.783,
    "s": 73.451,
    "l": 22.157
  },
  "oklch": {
    "l": 0.25563,
    "c": 0.13578,
    "h": 275.2
  },
  "luminance": 0.01406
}

Semantic roles & 50–950 ramp

primary
#170F62
secondary
#919B32
accent
#F038DE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020D
muted
#7A787D

Preview Lab

Preview with #170F62

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

Preview Lab → · Contrast checker → · Palette generator →

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