#170C55#170C55

#170C55 is a very dark, vivid blue. Relative luminance 0.011; OKLCH L 23.6% C 0.122 H 278.4°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#170C55
RGBrgb(23, 12, 85)
HSLhsl(249, 75%, 19%)
HSVhsv(249, 86%, 33%)
CMYKcmyk(72.9%, 85.9%, 0%, 66.7%)
CIE-LABlab(9.80, 29.61, -41.63)
CIE-LCHlch(9.80, 51.08, 305.42°)
OKLaboklab(23.56% 0.0177 -0.1202)
OKLCHoklch(23.56% 0.122 278.4)
XYZxyz(2.1240, 1.1008, 8.6931)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C55 #4A550C
analogous
#0C2655 #170C55 #3C0C55
triadic
#170C55 #55170C #0C5517
tetradic
#170C55 #550C26 #4A550C #0C553C
square
#170C55 #550C26 #4A550C #0C553C
split-complementary
#170C55 #553C0C #26550C
monochromatic
#07041B #08041F #170C55 #26148B #341BC0

Accessibility & contrast

On white

17.21
#170C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#170C55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C55
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C55#FFFFFF#000000##FFFFFF
##170C551.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E57
Deuteranopia (green-blind)
#001854
Tritanopia (blue-blind)
#002231
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #170c55;
/* rgb */ color: rgb(23, 12, 85);
/* oklch */ color: oklch(23.6% 0.122 278.4);
Tailwind
colors: {
  custom: {
    50: '#5f4d86',
    500: '#170c55',
    950: '#000000',
  },
}
SCSS
$custom: #170c55;
$custom-light: #5f4d86;
$custom-dark: #000000;
JSON
{
  "hex": "#170c55",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 85
  },
  "hsl": {
    "h": 249.041,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.23563,
    "c": 0.12155,
    "h": 278.4
  },
  "luminance": 0.01101
}

Semantic roles & 50–950 ramp

primary
#170C55
secondary
#81902D
accent
#F236D6
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #170C55

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

Preview Lab → · Contrast checker → · Palette generator →

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