#171248#171248

#171248 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.0% C 0.096 H 279.8°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#171248
RGBrgb(23, 18, 72)
HSLhsl(246, 60%, 18%)
HSVhsv(246, 75%, 28%)
CMYKcmyk(68.1%, 75%, 0%, 71.8%)
CIE-LABlab(9.66, 21.15, -32.89)
CIE-LCHlch(9.66, 39.11, 302.73°)
OKLaboklab(23.02% 0.0165 -0.0948)
OKLCHoklch(23.02% 0.096 279.8)
XYZxyz(1.7390, 1.0825, 6.2469)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171248 #434812
analogous
#122848 #171248 #321248
triadic
#171248 #481712 #124817
tetradic
#171248 #481228 #434812 #124832
square
#171248 #481228 #434812 #124832
split-complementary
#171248 #483212 #284812
monochromatic
#080618 #080618 #171248 #271E79 #362AAA

Accessibility & contrast

On white

17.26
#171248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#171248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171248
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171248#FFFFFF#000000##FFFFFF
##1712481.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4A
Deuteranopia (green-blind)
#001947
Tritanopia (blue-blind)
#00202B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #171248;
/* rgb */ color: rgb(23, 18, 72);
/* oklch */ color: oklch(23.0% 0.096 279.8);
Tailwind
colors: {
  custom: {
    50: '#5b507c',
    500: '#171248',
    950: '#000000',
  },
}
SCSS
$custom: #171248;
$custom-light: #5b507c;
$custom-dark: #000000;
JSON
{
  "hex": "#171248",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 245.556,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.23017,
    "c": 0.09621,
    "h": 279.8
  },
  "luminance": 0.01083
}

Semantic roles & 50–950 ramp

primary
#171248
secondary
#7A8135
accent
#E345D4
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040209
muted
#79787B

Preview Lab

Preview with #171248

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

Preview Lab → · Contrast checker → · Palette generator →

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