#171256#171256

#171256 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.6% C 0.116 H 276.8°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#171256
RGBrgb(23, 18, 86)
HSLhsl(244, 65%, 20%)
HSVhsv(244, 79%, 34%)
CMYKcmyk(73.3%, 79.1%, 0%, 66.3%)
CIE-LABlab(11.18, 26.38, -40.04)
CIE-LCHlch(11.18, 47.95, 303.38°)
OKLaboklab(24.57% 0.0137 -0.1157)
OKLCHoklch(24.57% 0.116 276.8)
XYZxyz(2.2488, 1.2865, 8.9321)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171256 #515612
analogous
#122F56 #171256 #391256
triadic
#171256 #561712 #125617
tetradic
#171256 #56122F #515612 #125639
square
#171256 #56122F #515612 #125639
split-complementary
#171256 #563912 #2F5612
monochromatic
#070519 #090723 #171256 #251D89 #3227BB

Accessibility & contrast

On white

16.70
#171256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#171256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171256
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171256#FFFFFF#000000##FFFFFF
##1712561.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#001B55
Tritanopia (blue-blind)
#002533
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #171256;
/* rgb */ color: rgb(23, 18, 86);
/* oklch */ color: oklch(24.6% 0.116 276.8);
Tailwind
colors: {
  custom: {
    50: '#5f5186',
    500: '#171256',
    950: '#000000',
  },
}
SCSS
$custom: #171256;
$custom-light: #5f5186;
$custom-dark: #000000;
JSON
{
  "hex": "#171256",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 244.412,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.24566,
    "c": 0.11649,
    "h": 276.8
  },
  "luminance": 0.01287
}

Semantic roles & 50–950 ramp

primary
#171256
secondary
#888F35
accent
#E83FDC
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #171256

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

Preview Lab → · Contrast checker → · Palette generator →

#171256 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva