#170F40#170F40

#170F40 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.6% C 0.088 H 283.6°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#170F40
RGBrgb(23, 15, 64)
HSLhsl(250, 62%, 15%)
HSVhsv(250, 77%, 25%)
CMYKcmyk(64.1%, 76.6%, 0%, 74.9%)
CIE-LABlab(8.07, 20.22, -29.85)
CIE-LCHlch(8.07, 36.05, 304.11°)
OKLaboklab(21.62% 0.0208 -0.0859)
OKLCHoklch(21.62% 0.088 283.6)
XYZxyz(1.4493, 0.8939, 4.9457)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F40 #38400F
analogous
#0F1F40 #170F40 #2F0F40
triadic
#170F40 #40170F #0F4017
tetradic
#170F40 #400F1F #38400F #0F402F
square
#170F40 #400F1F #38400F #0F402F
split-complementary
#170F40 #402F0F #1F400F
monochromatic
#090619 #090619 #170F40 #291B72 #3B26A3

Accessibility & contrast

On white

17.81
#170F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170F40
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F40#FFFFFF#000000##FFFFFF
##170F401.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#00163F
Tritanopia (blue-blind)
#041C25
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #170f40;
/* rgb */ color: rgb(23, 15, 64);
/* oklch */ color: oklch(21.6% 0.088 283.6);
Tailwind
colors: {
  custom: {
    50: '#5a4e75',
    500: '#170f40',
    950: '#000000',
  },
}
SCSS
$custom: #170f40;
$custom-light: #5a4e75;
$custom-dark: #000000;
JSON
{
  "hex": "#170f40",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 249.796,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.2162,
    "c": 0.08835,
    "h": 283.6
  },
  "luminance": 0.00894
}

Semantic roles & 50–950 ramp

primary
#170F40
secondary
#6E7A30
accent
#E543CB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170F40

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

Preview Lab → · Contrast checker → · Palette generator →

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