#170F7D#170F7D

#170F7D is a dark, vivid blue. Relative luminance 0.020; OKLCH L 29.0% C 0.169 H 271.6°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#170F7D
RGBrgb(23, 15, 125)
HSLhsl(244, 79%, 27%)
HSVhsv(244, 88%, 49%)
CMYKcmyk(81.6%, 88%, 0%, 51%)
CIE-LABlab(15.51, 41.30, -58.53)
CIE-LCHlch(15.51, 71.63, 305.21°)
OKLaboklab(29% 0.0046 -0.1693)
OKLCHoklch(29% 0.169 271.6)
XYZxyz(4.2246, 2.0040, 19.5622)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F7D #757D0F
analogous
#0F3E7D #170F7D #4E0F7D
triadic
#170F7D #7D170F #0F7D17
tetradic
#170F7D #7D0F3E #757D0F #0F7D4E
square
#170F7D #7D0F3E #757D0F #0F7D4E
split-complementary
#170F7D #7D4E0F #3E7D0F
monochromatic
#05031B #0D0846 #170F7D #2116B4 #3022E4

Accessibility & contrast

On white

14.99
#170F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#170F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F7D
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F7D#FFFFFF#000000##FFFFFF
##170F7D1.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C80
Deuteranopia (green-blind)
#00217B
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #170f7d;
/* rgb */ color: rgb(23, 15, 125);
/* oklch */ color: oklch(29.0% 0.169 271.6);
Tailwind
colors: {
  custom: {
    50: '#6a52a4',
    500: '#170f7d',
    950: '#000000',
  },
}
SCSS
$custom: #170f7d;
$custom-light: #6a52a4;
$custom-dark: #000000;
JSON
{
  "hex": "#170f7d",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 125
  },
  "hsl": {
    "h": 244.364,
    "s": 78.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29002,
    "c": 0.16937,
    "h": 271.6
  },
  "luminance": 0.02004
}

Semantic roles & 50–950 ramp

primary
#170F7D
secondary
#AAB434
accent
#F533E7
background
#F6F4FA
surface
#ECE7F4
border
#C7C3CE
text
#08020F
muted
#7A787F

Preview Lab

Preview with #170F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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