#171B50#171B50

#171B50 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.6% C 0.096 H 274.2°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#171B50
RGBrgb(23, 27, 80)
HSLhsl(236, 55%, 20%)
HSVhsv(236, 71%, 31%)
CMYKcmyk(71.2%, 66.3%, 0%, 68.6%)
CIE-LABlab(12.89, 17.81, -33.15)
CIE-LCHlch(12.89, 37.63, 298.25°)
OKLaboklab(25.62% 0.0069 -0.0955)
OKLCHoklch(25.62% 0.096 274.2)
XYZxyz(2.1928, 1.5450, 7.7705)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B50 #504C17
analogous
#173850 #171B50 #2F1750
triadic
#171B50 #50171B #1B5017
tetradic
#171B50 #501738 #504C17 #17502F
square
#171B50 #501738 #504C17 #17502F
split-complementary
#171B50 #502F17 #385017
monochromatic
#070818 #090B20 #171B50 #252B80 #323BAF

Accessibility & contrast

On white

16.04
#171B50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#171B50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B50
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B50#FFFFFF#000000##FFFFFF
##171B501.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#001F4F
Tritanopia (blue-blind)
#002832
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171b50;
/* rgb */ color: rgb(23, 27, 80);
/* oklch */ color: oklch(25.6% 0.096 274.2);
Tailwind
colors: {
  custom: {
    50: '#5c5782',
    500: '#171b50',
    950: '#000000',
  },
}
SCSS
$custom: #171b50;
$custom-light: #5c5782;
$custom-dark: #000000;
JSON
{
  "hex": "#171b50",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 80
  },
  "hsl": {
    "h": 235.789,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25618,
    "c": 0.09572,
    "h": 274.2
  },
  "luminance": 0.01545
}

Semantic roles & 50–950 ramp

primary
#171B50
secondary
#87823C
accent
#D449DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #171B50

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

Preview Lab → · Contrast checker → · Palette generator →

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