#170F4F#170F4F

#170F4F is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.3% C 0.110 H 279.2°. Best body text is #FFFFFF at 17.25:1 contrast (WCAG AA passes).

Color values

HEX#170F4F
RGBrgb(23, 15, 79)
HSLhsl(248, 68%, 18%)
HSVhsv(248, 81%, 31%)
CMYKcmyk(70.9%, 81%, 0%, 69%)
CIE-LABlab(9.71, 25.73, -37.68)
CIE-LCHlch(9.71, 45.62, 304.33°)
OKLaboklab(23.28% 0.0175 -0.1088)
OKLCHoklch(23.28% 0.11 279.2)
XYZxyz(1.9350, 1.0882, 7.5037)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F4F #474F0F
analogous
#0F274F #170F4F #370F4F
triadic
#170F4F #4F170F #0F4F17
tetradic
#170F4F #4F0F27 #474F0F #0F4F37
square
#170F4F #4F0F27 #474F0F #0F4F37
split-complementary
#170F4F #4F370F #274F0F
monochromatic
#07051A #08051C #170F4F #261982 #3523B6

Accessibility & contrast

On white

17.25
#170F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#170F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F4F
17.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F4F#FFFFFF#000000##FFFFFF
##170F4F1.0017.251.2217.25
#FFFFFF17.251.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D51
Deuteranopia (green-blind)
#00184E
Tritanopia (blue-blind)
#00212E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #170f4f;
/* rgb */ color: rgb(23, 15, 79);
/* oklch */ color: oklch(23.3% 0.110 279.2);
Tailwind
colors: {
  custom: {
    50: '#5d4e81',
    500: '#170f4f',
    950: '#000000',
  },
}
SCSS
$custom: #170f4f;
$custom-light: #5d4e81;
$custom-dark: #000000;
JSON
{
  "hex": "#170f4f",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 247.5,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.2328,
    "c": 0.11017,
    "h": 279.2
  },
  "luminance": 0.01088
}

Semantic roles & 50–950 ramp

primary
#170F4F
secondary
#7E8931
accent
#EB3DD5
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05020A
muted
#79787C

Preview Lab

Preview with #170F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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