#171B60#171B60

#171B60 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.2% C 0.120 H 272.7°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#171B60
RGBrgb(23, 27, 96)
HSLhsl(237, 61%, 23%)
HSVhsv(237, 76%, 38%)
CMYKcmyk(76%, 71.9%, 0%, 62.4%)
CIE-LABlab(14.46, 24.16, -41.37)
CIE-LCHlch(14.46, 47.91, 300.28°)
OKLaboklab(27.25% 0.0057 -0.1196)
OKLCHoklch(27.25% 0.12 272.7)
XYZxyz(2.8559, 1.8103, 11.2630)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B60 #605C17
analogous
#173F60 #171B60 #371760
triadic
#171B60 #60171B #1B6017
tetradic
#171B60 #60173F #605C17 #176037
square
#171B60 #60173F #605C17 #176037
split-complementary
#171B60 #603717 #3F6017
monochromatic
#060719 #0B0D2F #171B60 #232991 #2F37C3

Accessibility & contrast

On white

15.42
#171B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#171B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B60
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B60#FFFFFF#000000##FFFFFF
##171B601.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002862
Deuteranopia (green-blind)
#00215F
Tritanopia (blue-blind)
#002E3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171b60;
/* rgb */ color: rgb(23, 27, 96);
/* oklch */ color: oklch(27.2% 0.120 272.7);
Tailwind
colors: {
  custom: {
    50: '#61578e',
    500: '#171b60',
    950: '#000000',
  },
}
SCSS
$custom: #171b60;
$custom-light: #61578e;
$custom-dark: #000000;
JSON
{
  "hex": "#171b60",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 236.712,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27248,
    "c": 0.11972,
    "h": 272.7
  },
  "luminance": 0.01811
}

Semantic roles & 50–950 ramp

primary
#171B60
secondary
#97923C
accent
#DC43E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #171B60

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

Preview Lab → · Contrast checker → · Palette generator →

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