#170C51#170C51

#170C51 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 23.1% C 0.116 H 279.4°. Best body text is #FFFFFF at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#170C51
RGBrgb(23, 12, 81)
HSLhsl(250, 74%, 18%)
HSVhsv(250, 85%, 32%)
CMYKcmyk(71.6%, 85.2%, 0%, 68.2%)
CIE-LABlab(9.31, 28.23, -39.70)
CIE-LCHlch(9.31, 48.72, 305.41°)
OKLaboklab(23.08% 0.019 -0.1146)
OKLCHoklch(23.08% 0.116 279.4)
XYZxyz(1.9695, 1.0390, 7.8797)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C51 #46510C
analogous
#0C2351 #170C51 #390C51
triadic
#170C51 #51170C #0C5117
tetradic
#170C51 #510C23 #46510C #0C5139
square
#170C51 #510C23 #46510C #0C5139
split-complementary
#170C51 #51390C #23510C
monochromatic
#08041B #08041C #170C51 #261486 #351CBC

Accessibility & contrast

On white

17.39
#170C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#170C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C51
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C51#FFFFFF#000000##FFFFFF
##170C511.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D53
Deuteranopia (green-blind)
#001750
Tritanopia (blue-blind)
#00212E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #170c51;
/* rgb */ color: rgb(23, 12, 81);
/* oklch */ color: oklch(23.1% 0.116 279.4);
Tailwind
colors: {
  custom: {
    50: '#5e4d83',
    500: '#170c51',
    950: '#000000',
  },
}
SCSS
$custom: #170c51;
$custom-light: #5e4d83;
$custom-dark: #000000;
JSON
{
  "hex": "#170c51",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 249.565,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23075,
    "c": 0.1162,
    "h": 279.4
  },
  "luminance": 0.01039
}

Semantic roles & 50–950 ramp

primary
#170C51
secondary
#7D8C2C
accent
#F137D3
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #170C51

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

Preview Lab → · Contrast checker → · Palette generator →

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