#171B5E#171B5E

#171B5E is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.0% C 0.117 H 272.9°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#171B5E
RGBrgb(23, 27, 94)
HSLhsl(237, 61%, 23%)
HSVhsv(237, 76%, 37%)
CMYKcmyk(75.5%, 71.3%, 0%, 63.1%)
CIE-LABlab(14.25, 23.38, -40.37)
CIE-LCHlch(14.25, 46.65, 300.07°)
OKLaboklab(27.04% 0.0059 -0.1167)
OKLCHoklch(27.04% 0.117 272.9)
XYZxyz(2.7650, 1.7739, 10.7842)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B5E #5E5A17
analogous
#173E5E #171B5E #36175E
triadic
#171B5E #5E171B #1B5E17
tetradic
#171B5E #5E173E #5E5A17 #175E36
square
#171B5E #5E173E #5E5A17 #175E36
split-complementary
#171B5E #5E3617 #3E5E17
monochromatic
#060719 #0B0D2D #171B5E #23298F #2F37C0

Accessibility & contrast

On white

15.50
#171B5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#171B5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B5E
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B5E#FFFFFF#000000##FFFFFF
##171B5E1.0015.501.3515.50
#FFFFFF15.501.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#002D3A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171b5e;
/* rgb */ color: rgb(23, 27, 94);
/* oklch */ color: oklch(27.0% 0.117 272.9);
Tailwind
colors: {
  custom: {
    50: '#60578c',
    500: '#171b5e',
    950: '#000000',
  },
}
SCSS
$custom: #171b5e;
$custom-light: #60578c;
$custom-dark: #000000;
JSON
{
  "hex": "#171b5e",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 94
  },
  "hsl": {
    "h": 236.62,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27037,
    "c": 0.11682,
    "h": 272.9
  },
  "luminance": 0.01774
}

Semantic roles & 50–950 ramp

primary
#171B5E
secondary
#95903C
accent
#DB44E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #171B5E

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

Preview Lab → · Contrast checker → · Palette generator →

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