#171257#171257

#171257 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.7% C 0.118 H 276.6°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#171257
RGBrgb(23, 18, 87)
HSLhsl(244, 66%, 21%)
HSVhsv(244, 79%, 34%)
CMYKcmyk(73.6%, 79.3%, 0%, 65.9%)
CIE-LABlab(11.29, 26.75, -40.53)
CIE-LCHlch(11.29, 48.56, 303.43°)
OKLaboklab(24.68% 0.0135 -0.1171)
OKLCHoklch(24.68% 0.118 276.6)
XYZxyz(2.2894, 1.3027, 9.1458)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171257 #525712
analogous
#122F57 #171257 #391257
triadic
#171257 #571712 #125717
tetradic
#171257 #57122F #525712 #125739
square
#171257 #57122F #525712 #125739
split-complementary
#171257 #573912 #2F5712
monochromatic
#070519 #0A0824 #171257 #241C8A #3227BC

Accessibility & contrast

On white

16.66
#171257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171257
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171257#FFFFFF#000000##FFFFFF
##1712571.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002159
Deuteranopia (green-blind)
#001B56
Tritanopia (blue-blind)
#002633
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #171257;
/* rgb */ color: rgb(23, 18, 87);
/* oklch */ color: oklch(24.7% 0.118 276.6);
Tailwind
colors: {
  custom: {
    50: '#5f5187',
    500: '#171257',
    950: '#000000',
  },
}
SCSS
$custom: #171257;
$custom-light: #5f5187;
$custom-dark: #000000;
JSON
{
  "hex": "#171257",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 244.348,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.24681,
    "c": 0.11788,
    "h": 276.6
  },
  "luminance": 0.01303
}

Semantic roles & 50–950 ramp

primary
#171257
secondary
#899035
accent
#E93FDC
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020B
muted
#79787C

Preview Lab

Preview with #171257

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

Preview Lab → · Contrast checker → · Palette generator →

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