#170B56#170B56

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

Color values

HEX#170B56
RGBrgb(23, 11, 86)
HSLhsl(250, 77%, 19%)
HSVhsv(250, 87%, 34%)
CMYKcmyk(73.3%, 87.2%, 0%, 66.3%)
CIE-LABlab(9.74, 30.49, -42.41)
CIE-LCHlch(9.74, 52.23, 305.71°)
OKLaboklab(23.56% 0.0179 -0.1225)
OKLCHoklch(23.56% 0.124 278.3)
XYZxyz(2.1522, 1.0932, 8.8999)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B56 #4A560B
analogous
#0B2556 #170B56 #3D0B56
triadic
#170B56 #56170B #0B5617
tetradic
#170B56 #560B25 #4A560B #0B563D
square
#170B56 #560B25 #4A560B #0B563D
split-complementary
#170B56 #563D0B #25560B
monochromatic
#07031B #080420 #170B56 #26128C #3419C3

Accessibility & contrast

On white

17.23
#170B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170B56
17.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B56#FFFFFF#000000##FFFFFF
##170B561.0017.231.2217.23
#FFFFFF17.231.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170b56;
/* rgb */ color: rgb(23, 11, 86);
/* oklch */ color: oklch(23.6% 0.124 278.3);
Tailwind
colors: {
  custom: {
    50: '#604d87',
    500: '#170b56',
    950: '#000000',
  },
}
SCSS
$custom: #170b56;
$custom-light: #604d87;
$custom-dark: #000000;
JSON
{
  "hex": "#170b56",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 249.6,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.23559,
    "c": 0.12381,
    "h": 278.3
  },
  "luminance": 0.01093
}

Semantic roles & 50–950 ramp

primary
#170B56
secondary
#81912B
accent
#F434D5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#05010B
muted
#7A777C

Preview Lab

Preview with #170B56

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

Preview Lab → · Contrast checker → · Palette generator →

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