#170F42#170F42

#170F42 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.8% C 0.091 H 282.9°. Best body text is #FFFFFF at 17.75:1 contrast (WCAG AA passes).

Color values

HEX#170F42
RGBrgb(23, 15, 66)
HSLhsl(249, 63%, 16%)
HSVhsv(249, 77%, 26%)
CMYKcmyk(65.2%, 77.3%, 0%, 74.1%)
CIE-LABlab(8.28, 20.96, -30.93)
CIE-LCHlch(8.28, 37.37, 304.12°)
OKLaboklab(21.83% 0.0205 -0.089)
OKLCHoklch(21.83% 0.091 282.9)
XYZxyz(1.5072, 0.9171, 5.2508)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F42 #3A420F
analogous
#0F2042 #170F42 #300F42
triadic
#170F42 #42170F #0F4217
tetradic
#170F42 #420F20 #3A420F #0F4230
square
#170F42 #420F20 #3A420F #0F4230
split-complementary
#170F42 #42300F #20420F
monochromatic
#090619 #090619 #170F42 #281A74 #3A26A6

Accessibility & contrast

On white

17.75
#170F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#170F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F42
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F42#FFFFFF#000000##FFFFFF
##170F421.0017.751.1817.75
#FFFFFF17.751.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001641
Tritanopia (blue-blind)
#021C27
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #170f42;
/* rgb */ color: rgb(23, 15, 66);
/* oklch */ color: oklch(21.8% 0.091 282.9);
Tailwind
colors: {
  custom: {
    50: '#5a4e77',
    500: '#170f42',
    950: '#000000',
  },
}
SCSS
$custom: #170f42;
$custom-light: #5a4e77;
$custom-dark: #000000;
JSON
{
  "hex": "#170f42",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 249.412,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21832,
    "c": 0.09136,
    "h": 282.9
  },
  "luminance": 0.00917
}

Semantic roles & 50–950 ramp

primary
#170F42
secondary
#717C30
accent
#E642CC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #170F42

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

Preview Lab → · Contrast checker → · Palette generator →

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