#171B57#171B57

#171B57 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.3% C 0.106 H 273.5°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#171B57
RGBrgb(23, 27, 87)
HSLhsl(236, 58%, 22%)
HSVhsv(236, 74%, 34%)
CMYKcmyk(73.6%, 69%, 0%, 65.9%)
CIE-LABlab(13.55, 20.61, -36.82)
CIE-LCHlch(13.55, 42.19, 299.24°)
OKLaboklab(26.31% 0.0066 -0.1062)
OKLCHoklch(26.31% 0.106 273.5)
XYZxyz(2.4650, 1.6539, 9.2043)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B57 #575317
analogous
#173B57 #171B57 #331757
triadic
#171B57 #57171B #1B5717
tetradic
#171B57 #57173B #575317 #175733
square
#171B57 #57173B #575317 #175733
split-complementary
#171B57 #573317 #3B5717
monochromatic
#060818 #0A0C27 #171B57 #242A87 #3139B8

Accessibility & contrast

On white

15.78
#171B57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#171B57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B57
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B57#FFFFFF#000000##FFFFFF
##171B571.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002056
Tritanopia (blue-blind)
#002A36
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171b57;
/* rgb */ color: rgb(23, 27, 87);
/* oklch */ color: oklch(26.3% 0.106 273.5);
Tailwind
colors: {
  custom: {
    50: '#5e5787',
    500: '#171b57',
    950: '#000000',
  },
}
SCSS
$custom: #171b57;
$custom-light: #5e5787;
$custom-dark: #000000;
JSON
{
  "hex": "#171b57",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 87
  },
  "hsl": {
    "h": 236.25,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26312,
    "c": 0.10645,
    "h": 273.5
  },
  "luminance": 0.01654
}

Semantic roles & 50–950 ramp

primary
#171B57
secondary
#8E893C
accent
#D846E1
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171B57

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

Preview Lab → · Contrast checker → · Palette generator →

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