#171B5C#171B5C

#171B5C is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.8% C 0.114 H 273.1°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#171B5C
RGBrgb(23, 27, 92)
HSLhsl(237, 60%, 23%)
HSVhsv(237, 75%, 36%)
CMYKcmyk(75%, 70.7%, 0%, 63.9%)
CIE-LABlab(14.05, 22.59, -39.37)
CIE-LCHlch(14.05, 45.39, 299.84°)
OKLaboklab(26.83% 0.0062 -0.1137)
OKLCHoklch(26.83% 0.114 273.1)
XYZxyz(2.6764, 1.7385, 10.3177)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B5C #5C5817
analogous
#173D5C #171B5C #36175C
triadic
#171B5C #5C171B #1B5C17
tetradic
#171B5C #5C173D #5C5817 #175C36
square
#171B5C #5C173D #5C5817 #175C36
split-complementary
#171B5C #5C3617 #3D5C17
monochromatic
#060718 #0B0D2B #171B5C #23298D #2F38BE

Accessibility & contrast

On white

15.58
#171B5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B5C
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B5C#FFFFFF#000000##FFFFFF
##171B5C1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#002C38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171b5c;
/* rgb */ color: rgb(23, 27, 92);
/* oklch */ color: oklch(26.8% 0.114 273.1);
Tailwind
colors: {
  custom: {
    50: '#5f578b',
    500: '#171b5c',
    950: '#000000',
  },
}
SCSS
$custom: #171b5c;
$custom-light: #5f578b;
$custom-dark: #000000;
JSON
{
  "hex": "#171b5c",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 92
  },
  "hsl": {
    "h": 236.522,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26827,
    "c": 0.1139,
    "h": 273.1
  },
  "luminance": 0.01739
}

Semantic roles & 50–950 ramp

primary
#171B5C
secondary
#938E3C
accent
#DA45E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #171B5C

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

Preview Lab → · Contrast checker → · Palette generator →

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