#171B5D#171B5D

#171B5D is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.9% C 0.115 H 273.0°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#171B5D
RGBrgb(23, 27, 93)
HSLhsl(237, 60%, 23%)
HSVhsv(237, 75%, 36%)
CMYKcmyk(75.3%, 71%, 0%, 63.5%)
CIE-LABlab(14.15, 22.98, -39.87)
CIE-LCHlch(14.15, 46.02, 299.96°)
OKLaboklab(26.93% 0.0061 -0.1152)
OKLCHoklch(26.93% 0.115 273)
XYZxyz(2.7204, 1.7561, 10.5494)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B5D #5D5917
analogous
#173E5D #171B5D #36175D
triadic
#171B5D #5D171B #1B5D17
tetradic
#171B5D #5D173E #5D5917 #175D36
square
#171B5D #5D173E #5D5917 #175D36
split-complementary
#171B5D #5D3617 #3E5D17
monochromatic
#060719 #0B0D2C #171B5D #23298E #2F37BF

Accessibility & contrast

On white

15.54
#171B5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B5D
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B5D#FFFFFF#000000##FFFFFF
##171B5D1.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#002C39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171b5d;
/* rgb */ color: rgb(23, 27, 93);
/* oklch */ color: oklch(26.9% 0.115 273.0);
Tailwind
colors: {
  custom: {
    50: '#60578c',
    500: '#171b5d',
    950: '#000000',
  },
}
SCSS
$custom: #171b5d;
$custom-light: #60578c;
$custom-dark: #000000;
JSON
{
  "hex": "#171b5d",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 93
  },
  "hsl": {
    "h": 236.571,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26931,
    "c": 0.11536,
    "h": 273
  },
  "luminance": 0.01756
}

Semantic roles & 50–950 ramp

primary
#171B5D
secondary
#948F3C
accent
#DA44E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #171B5D

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

Preview Lab → · Contrast checker → · Palette generator →

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