#171B56#171B56

#171B56 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.2% C 0.105 H 273.6°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#171B56
RGBrgb(23, 27, 86)
HSLhsl(236, 58%, 21%)
HSVhsv(236, 73%, 34%)
CMYKcmyk(73.3%, 68.6%, 0%, 66.3%)
CIE-LABlab(13.46, 20.21, -36.30)
CIE-LCHlch(13.46, 41.55, 299.11°)
OKLaboklab(26.21% 0.0066 -0.1047)
OKLCHoklch(26.21% 0.105 273.6)
XYZxyz(2.4244, 1.6377, 8.9906)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B56 #565217
analogous
#173B56 #171B56 #331756
triadic
#171B56 #56171B #1B5617
tetradic
#171B56 #56173B #565217 #175633
square
#171B56 #56173B #565217 #175633
split-complementary
#171B56 #563317 #3B5617
monochromatic
#060818 #0A0C26 #171B56 #242A86 #3139B7

Accessibility & contrast

On white

15.82
#171B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B56
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B56#FFFFFF#000000##FFFFFF
##171B561.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#002A35
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171b56;
/* rgb */ color: rgb(23, 27, 86);
/* oklch */ color: oklch(26.2% 0.105 273.6);
Tailwind
colors: {
  custom: {
    50: '#5e5786',
    500: '#171b56',
    950: '#000000',
  },
}
SCSS
$custom: #171b56;
$custom-light: #5e5786;
$custom-dark: #000000;
JSON
{
  "hex": "#171b56",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 86
  },
  "hsl": {
    "h": 236.19,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26211,
    "c": 0.10495,
    "h": 273.6
  },
  "luminance": 0.01638
}

Semantic roles & 50–950 ramp

primary
#171B56
secondary
#8D883C
accent
#D747E1
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171B56

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

Preview Lab → · Contrast checker → · Palette generator →

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