#171B41#171B41

#171B41 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.3% C 0.071 H 275.2°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#171B41
RGBrgb(23, 27, 65)
HSLhsl(234, 48%, 17%)
HSVhsv(234, 65%, 25%)
CMYKcmyk(64.6%, 58.5%, 0%, 74.5%)
CIE-LABlab(11.60, 11.75, -24.83)
CIE-LCHlch(11.60, 27.47, 295.33°)
OKLaboklab(24.25% 0.0065 -0.071)
OKLCHoklch(24.25% 0.071 275.2)
XYZxyz(1.6991, 1.3476, 5.1706)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B41 #413D17
analogous
#173041 #171B41 #281741
triadic
#171B41 #41171B #1B4117
tetradic
#171B41 #411730 #413D17 #174128
square
#171B41 #411730 #413D17 #174128
split-complementary
#171B41 #412817 #304117
monochromatic
#080917 #080917 #171B41 #272E6E #37419B

Accessibility & contrast

On white

16.54
#171B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#171B41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B41
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B41#FFFFFF#000000##FFFFFF
##171B411.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072142
Deuteranopia (green-blind)
#021D40
Tritanopia (blue-blind)
#02242B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #171b41;
/* rgb */ color: rgb(23, 27, 65);
/* oklch */ color: oklch(24.3% 0.071 275.2);
Tailwind
colors: {
  custom: {
    50: '#595776',
    500: '#171b41',
    950: '#000000',
  },
}
SCSS
$custom: #171b41;
$custom-light: #595776;
$custom-dark: #000000;
JSON
{
  "hex": "#171b41",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 65
  },
  "hsl": {
    "h": 234.286,
    "s": 47.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.24252,
    "c": 0.07132,
    "h": 275.2
  },
  "luminance": 0.01348
}

Semantic roles & 50–950 ramp

primary
#171B41
secondary
#78723C
accent
#CA50D7
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #171B41

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

Preview Lab → · Contrast checker → · Palette generator →

#171B41 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva