#170F4A#170F4A

#170F4A is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.7% C 0.103 H 280.5°. Best body text is #FFFFFF at 17.45:1 contrast (WCAG AA passes).

Color values

HEX#170F4A
RGBrgb(23, 15, 74)
HSLhsl(248, 66%, 17%)
HSVhsv(248, 80%, 29%)
CMYKcmyk(68.9%, 79.7%, 0%, 71%)
CIE-LABlab(9.14, 23.91, -35.14)
CIE-LCHlch(9.14, 42.50, 304.23°)
OKLaboklab(22.71% 0.0188 -0.1014)
OKLCHoklch(22.71% 0.103 280.5)
XYZxyz(1.7598, 1.0181, 6.5810)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F4A #424A0F
analogous
#0F244A #170F4A #350F4A
triadic
#170F4A #4A170F #0F4A17
tetradic
#170F4A #4A0F24 #424A0F #0F4A35
square
#170F4A #4A0F24 #424A0F #0F4A35
split-complementary
#170F4A #4A350F #244A0F
monochromatic
#080519 #080519 #170F4A #27197D #3724B0

Accessibility & contrast

On white

17.45
#170F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170F4A
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F4A#FFFFFF#000000##FFFFFF
##170F4A1.0017.451.2017.45
#FFFFFF17.451.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4C
Deuteranopia (green-blind)
#001849
Tritanopia (blue-blind)
#001F2B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #170f4a;
/* rgb */ color: rgb(23, 15, 74);
/* oklch */ color: oklch(22.7% 0.103 280.5);
Tailwind
colors: {
  custom: {
    50: '#5c4e7d',
    500: '#170f4a',
    950: '#000000',
  },
}
SCSS
$custom: #170f4a;
$custom-light: #5c4e7d;
$custom-dark: #000000;
JSON
{
  "hex": "#170f4a",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 248.136,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2271,
    "c": 0.10308,
    "h": 280.5
  },
  "luminance": 0.01018
}

Semantic roles & 50–950 ramp

primary
#170F4A
secondary
#798430
accent
#E93FD2
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #170F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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