#171B53#171B53

#171B53 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.100 H 273.9°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#171B53
RGBrgb(23, 27, 83)
HSLhsl(236, 57%, 21%)
HSVhsv(236, 72%, 33%)
CMYKcmyk(72.3%, 67.5%, 0%, 67.5%)
CIE-LABlab(13.17, 19.01, -34.73)
CIE-LCHlch(13.17, 39.60, 298.69°)
OKLaboklab(25.91% 0.0068 -0.1001)
OKLCHoklch(25.91% 0.1 273.9)
XYZxyz(2.3061, 1.5904, 8.3674)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B53 #534F17
analogous
#173953 #171B53 #311753
triadic
#171B53 #53171B #1B5317
tetradic
#171B53 #531739 #534F17 #175331
square
#171B53 #531739 #534F17 #175331
split-complementary
#171B53 #533117 #395317
monochromatic
#070818 #0A0B23 #171B53 #242B83 #323AB3

Accessibility & contrast

On white

15.93
#171B53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#171B53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B53
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B53#FFFFFF#000000##FFFFFF
##171B531.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002555
Deuteranopia (green-blind)
#001F52
Tritanopia (blue-blind)
#002934
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171b53;
/* rgb */ color: rgb(23, 27, 83);
/* oklch */ color: oklch(25.9% 0.100 273.9);
Tailwind
colors: {
  custom: {
    50: '#5d5784',
    500: '#171b53',
    950: '#000000',
  },
}
SCSS
$custom: #171b53;
$custom-light: #5d5784;
$custom-dark: #000000;
JSON
{
  "hex": "#171b53",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 83
  },
  "hsl": {
    "h": 236,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.25912,
    "c": 0.10037,
    "h": 273.9
  },
  "luminance": 0.01591
}

Semantic roles & 50–950 ramp

primary
#171B53
secondary
#8A853C
accent
#D648E0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171B53

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

Preview Lab → · Contrast checker → · Palette generator →

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