#170F4D#170F4D

#170F4D is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.1% C 0.107 H 279.7°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#170F4D
RGBrgb(23, 15, 77)
HSLhsl(248, 67%, 18%)
HSVhsv(248, 81%, 30%)
CMYKcmyk(70.1%, 80.5%, 0%, 69.8%)
CIE-LABlab(9.48, 25.00, -36.67)
CIE-LCHlch(9.48, 44.38, 304.29°)
OKLaboklab(23.05% 0.018 -0.1058)
OKLCHoklch(23.05% 0.107 279.7)
XYZxyz(1.8633, 1.0595, 7.1260)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F4D #454D0F
analogous
#0F264D #170F4D #360F4D
triadic
#170F4D #4D170F #0F4D17
tetradic
#170F4D #4D0F26 #454D0F #0F4D36
square
#170F4D #4D0F26 #454D0F #0F4D36
split-complementary
#170F4D #4D360F #264D0F
monochromatic
#08051A #08051A #170F4D #261980 #3623B3

Accessibility & contrast

On white

17.33
#170F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#170F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F4D
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F4D#FFFFFF#000000##FFFFFF
##170F4D1.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4F
Deuteranopia (green-blind)
#00184C
Tritanopia (blue-blind)
#00202D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #170f4d;
/* rgb */ color: rgb(23, 15, 77);
/* oklch */ color: oklch(23.1% 0.107 279.7);
Tailwind
colors: {
  custom: {
    50: '#5d4e80',
    500: '#170f4d',
    950: '#000000',
  },
}
SCSS
$custom: #170f4d;
$custom-light: #5d4e80;
$custom-dark: #000000;
JSON
{
  "hex": "#170f4d",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 247.742,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2305,
    "c": 0.10735,
    "h": 279.7
  },
  "luminance": 0.0106
}

Semantic roles & 50–950 ramp

primary
#170F4D
secondary
#7C8731
accent
#EA3ED4
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #170F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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