#171241#171241

#171241 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.3% C 0.085 H 281.7°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#171241
RGBrgb(23, 18, 65)
HSLhsl(246, 57%, 16%)
HSVhsv(246, 72%, 25%)
CMYKcmyk(64.6%, 72.3%, 0%, 74.5%)
CIE-LABlab(8.96, 18.48, -29.12)
CIE-LCHlch(8.96, 34.48, 302.40°)
OKLaboklab(22.29% 0.0174 -0.0837)
OKLCHoklch(22.29% 0.085 281.7)
XYZxyz(1.5235, 0.9963, 5.1120)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171241 #3C4112
analogous
#122541 #171241 #2F1241
triadic
#171241 #411712 #124117
tetradic
#171241 #411225 #3C4112 #12412F
square
#171241 #411225 #3C4112 #12412F
split-complementary
#171241 #412F12 #254112
monochromatic
#080718 #080718 #171241 #281F71 #392DA1

Accessibility & contrast

On white

17.51
#171241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#171241 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171241
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171241#FFFFFF#000000##FFFFFF
##1712411.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B42
Deuteranopia (green-blind)
#001840
Tritanopia (blue-blind)
#031E27
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #171241;
/* rgb */ color: rgb(23, 18, 65);
/* oklch */ color: oklch(22.3% 0.085 281.7);
Tailwind
colors: {
  custom: {
    50: '#595076',
    500: '#171241',
    950: '#000000',
  },
}
SCSS
$custom: #171241;
$custom-light: #595076;
$custom-dark: #000000;
JSON
{
  "hex": "#171241",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 65
  },
  "hsl": {
    "h": 246.383,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.22293,
    "c": 0.08549,
    "h": 281.7
  },
  "luminance": 0.00996
}

Semantic roles & 50–950 ramp

primary
#171241
secondary
#737A35
accent
#E048D0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #171241

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

Preview Lab → · Contrast checker → · Palette generator →

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