#171237#171237

#171237 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.3% C 0.069 H 285.0°. Best body text is #FFFFFF at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#171237
RGBrgb(23, 18, 55)
HSLhsl(248, 51%, 14%)
HSVhsv(248, 67%, 22%)
CMYKcmyk(58.2%, 67.3%, 0%, 78.4%)
CIE-LABlab(8.04, 14.67, -23.44)
CIE-LCHlch(8.04, 27.65, 302.04°)
OKLaboklab(21.33% 0.018 -0.067)
OKLCHoklch(21.33% 0.069 285)
XYZxyz(1.2590, 0.8905, 3.7192)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171237 #323712
analogous
#122037 #171237 #2A1237
triadic
#171237 #371712 #123717
tetradic
#171237 #371220 #323712 #12372A
square
#171237 #371220 #323712 #12372A
split-complementary
#171237 #372A12 #203712
monochromatic
#0A0817 #0A0817 #171237 #2A2165 #3E3093

Accessibility & contrast

On white

17.82
#171237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#171237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171237
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171237#FFFFFF#000000##FFFFFF
##1712371.0017.821.1817.82
#FFFFFF17.821.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001938
Deuteranopia (green-blind)
#001636
Tritanopia (blue-blind)
#0B1A22
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #171237;
/* rgb */ color: rgb(23, 18, 55);
/* oklch */ color: oklch(21.3% 0.069 285.0);
Tailwind
colors: {
  custom: {
    50: '#574f6e',
    500: '#171237',
    950: '#000000',
  },
}
SCSS
$custom: #171237;
$custom-light: #574f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#171237",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 248.108,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21332,
    "c": 0.06938,
    "h": 285
  },
  "luminance": 0.00891
}

Semantic roles & 50–950 ramp

primary
#171237
secondary
#687035
accent
#DA4EC7
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030207
muted
#78787A

Preview Lab

Preview with #171237

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

Preview Lab → · Contrast checker → · Palette generator →

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