#171E54#171E54

#171E54 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.6% C 0.098 H 272.3°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#171E54
RGBrgb(23, 30, 84)
HSLhsl(233, 57%, 21%)
HSVhsv(233, 73%, 33%)
CMYKcmyk(72.6%, 64.3%, 0%, 67.1%)
CIE-LABlab(14.12, 17.21, -33.87)
CIE-LCHlch(14.12, 37.99, 296.94°)
OKLaboklab(26.64% 0.004 -0.0976)
OKLCHoklch(26.64% 0.098 272.3)
XYZxyz(2.4173, 1.7506, 8.5963)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E54 #544D17
analogous
#173C54 #171E54 #2E1754
triadic
#171E54 #54171E #1E5417
tetradic
#171E54 #54173C #544D17 #17542E
square
#171E54 #54173C #544D17 #17542E
split-complementary
#171E54 #542E17 #3C5417
monochromatic
#070918 #0A0D24 #171E54 #242F84 #3140B4

Accessibility & contrast

On white

15.55
#171E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171E54
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E54#FFFFFF#000000##FFFFFF
##171E541.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002756
Deuteranopia (green-blind)
#002153
Tritanopia (blue-blind)
#002B35
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171e54;
/* rgb */ color: rgb(23, 30, 84);
/* oklch */ color: oklch(26.6% 0.098 272.3);
Tailwind
colors: {
  custom: {
    50: '#5d5985',
    500: '#171e54',
    950: '#000000',
  },
}
SCSS
$custom: #171e54;
$custom-light: #5d5985;
$custom-dark: #000000;
JSON
{
  "hex": "#171e54",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 84
  },
  "hsl": {
    "h": 233.115,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26642,
    "c": 0.09764,
    "h": 272.3
  },
  "luminance": 0.01751
}

Semantic roles & 50–950 ramp

primary
#171E54
secondary
#8B823C
accent
#CF48E0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171E54

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

Preview Lab → · Contrast checker → · Palette generator →

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