#170F41#170F41

#170F41 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.7% C 0.090 H 283.3°. Best body text is #FFFFFF at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#170F41
RGBrgb(23, 15, 65)
HSLhsl(250, 63%, 16%)
HSVhsv(250, 77%, 25%)
CMYKcmyk(64.6%, 76.9%, 0%, 74.5%)
CIE-LABlab(8.18, 20.59, -30.39)
CIE-LCHlch(8.18, 36.71, 304.11°)
OKLaboklab(21.73% 0.0206 -0.0875)
OKLCHoklch(21.73% 0.09 283.3)
XYZxyz(1.4780, 0.9054, 5.0969)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F41 #39410F
analogous
#0F2041 #170F41 #300F41
triadic
#170F41 #41170F #0F4117
tetradic
#170F41 #410F20 #39410F #0F4130
square
#170F41 #410F20 #39410F #0F4130
split-complementary
#170F41 #41300F #20410F
monochromatic
#090619 #090619 #170F41 #291A73 #3A26A4

Accessibility & contrast

On white

17.78
#170F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170F41
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F41#FFFFFF#000000##FFFFFF
##170F411.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001943
Deuteranopia (green-blind)
#001640
Tritanopia (blue-blind)
#031C26
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #170f41;
/* rgb */ color: rgb(23, 15, 65);
/* oklch */ color: oklch(21.7% 0.090 283.3);
Tailwind
colors: {
  custom: {
    50: '#5a4e76',
    500: '#170f41',
    950: '#000000',
  },
}
SCSS
$custom: #170f41;
$custom-light: #5a4e76;
$custom-dark: #000000;
JSON
{
  "hex": "#170f41",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 65
  },
  "hsl": {
    "h": 249.6,
    "s": 62.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.21726,
    "c": 0.08986,
    "h": 283.3
  },
  "luminance": 0.00905
}

Semantic roles & 50–950 ramp

primary
#170F41
secondary
#6F7B30
accent
#E642CB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170F41

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

Preview Lab → · Contrast checker → · Palette generator →

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