#170F48#170F48

#170F48 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.5% C 0.100 H 281.1°. Best body text is #FFFFFF at 17.52:1 contrast (WCAG AA passes).

Color values

HEX#170F48
RGBrgb(23, 15, 72)
HSLhsl(248, 66%, 17%)
HSVhsv(248, 79%, 28%)
CMYKcmyk(68.1%, 79.2%, 0%, 71.8%)
CIE-LABlab(8.92, 23.17, -34.11)
CIE-LCHlch(8.92, 41.23, 304.19°)
OKLaboklab(22.49% 0.0192 -0.0983)
OKLCHoklch(22.49% 0.1 281.1)
XYZxyz(1.6935, 0.9916, 6.2318)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F48 #40480F
analogous
#0F2448 #170F48 #340F48
triadic
#170F48 #48170F #0F4817
tetradic
#170F48 #480F24 #40480F #0F4834
square
#170F48 #480F24 #40480F #0F4834
split-complementary
#170F48 #48340F #24480F
monochromatic
#080519 #080519 #170F48 #271A7B #3724AD

Accessibility & contrast

On white

17.52
#170F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#170F48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F48
17.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F48#FFFFFF#000000##FFFFFF
##170F481.0017.521.2017.52
#FFFFFF17.521.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4A
Deuteranopia (green-blind)
#001747
Tritanopia (blue-blind)
#001E2A
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #170f48;
/* rgb */ color: rgb(23, 15, 72);
/* oklch */ color: oklch(22.5% 0.100 281.1);
Tailwind
colors: {
  custom: {
    50: '#5c4e7c',
    500: '#170f48',
    950: '#000000',
  },
}
SCSS
$custom: #170f48;
$custom-light: #5c4e7c;
$custom-dark: #000000;
JSON
{
  "hex": "#170f48",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 248.421,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.22486,
    "c": 0.10019,
    "h": 281.1
  },
  "luminance": 0.00992
}

Semantic roles & 50–950 ramp

primary
#170F48
secondary
#778230
accent
#E83FD1
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #170F48

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

Preview Lab → · Contrast checker → · Palette generator →

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