#171247#171247

#171247 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.9% C 0.095 H 280.1°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#171247
RGBrgb(23, 18, 71)
HSLhsl(246, 60%, 17%)
HSVhsv(246, 75%, 28%)
CMYKcmyk(67.6%, 74.6%, 0%, 72.2%)
CIE-LABlab(9.56, 20.76, -32.36)
CIE-LCHlch(9.56, 38.45, 302.68°)
OKLaboklab(22.91% 0.0166 -0.0932)
OKLCHoklch(22.91% 0.095 280.1)
XYZxyz(1.7066, 1.0696, 6.0765)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171247 #424712
analogous
#122847 #171247 #311247
triadic
#171247 #471712 #124717
tetradic
#171247 #471228 #424712 #124731
square
#171247 #471228 #424712 #124731
split-complementary
#171247 #473112 #284712
monochromatic
#080618 #080618 #171247 #271E78 #372BA9

Accessibility & contrast

On white

17.30
#171247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#171247 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171247
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171247#FFFFFF#000000##FFFFFF
##1712471.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D49
Deuteranopia (green-blind)
#001946
Tritanopia (blue-blind)
#00202A
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #171247;
/* rgb */ color: rgb(23, 18, 71);
/* oklch */ color: oklch(22.9% 0.095 280.1);
Tailwind
colors: {
  custom: {
    50: '#5b507b',
    500: '#171247',
    950: '#000000',
  },
}
SCSS
$custom: #171247;
$custom-light: #5b507b;
$custom-dark: #000000;
JSON
{
  "hex": "#171247",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 71
  },
  "hsl": {
    "h": 245.66,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.22911,
    "c": 0.0947,
    "h": 280.1
  },
  "luminance": 0.0107
}

Semantic roles & 50–950 ramp

primary
#171247
secondary
#798035
accent
#E345D4
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040209
muted
#79787B

Preview Lab

Preview with #171247

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

Preview Lab → · Contrast checker → · Palette generator →

#171247 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva