#171E50#171E50

#171E50 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.3% C 0.091 H 272.5°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#171E50
RGBrgb(23, 30, 80)
HSLhsl(233, 55%, 20%)
HSVhsv(233, 71%, 31%)
CMYKcmyk(71.2%, 62.5%, 0%, 68.6%)
CIE-LABlab(13.77, 15.58, -31.72)
CIE-LCHlch(13.77, 35.34, 296.16°)
OKLaboklab(26.27% 0.0039 -0.0913)
OKLCHoklch(26.27% 0.091 272.5)
XYZxyz(2.2651, 1.6897, 7.7946)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E50 #504917
analogous
#173A50 #171E50 #2D1750
triadic
#171E50 #50171E #1E5017
tetradic
#171E50 #50173A #504917 #17502D
square
#171E50 #50173A #504917 #17502D
split-complementary
#171E50 #502D17 #3A5017
monochromatic
#070918 #090C20 #171E50 #253080 #3242AF

Accessibility & contrast

On white

15.70
#171E50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#171E50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E50
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E50#FFFFFF#000000##FFFFFF
##171E501.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002652
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#002A33
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171e50;
/* rgb */ color: rgb(23, 30, 80);
/* oklch */ color: oklch(26.3% 0.091 272.5);
Tailwind
colors: {
  custom: {
    50: '#5c5981',
    500: '#171e50',
    950: '#000000',
  },
}
SCSS
$custom: #171e50;
$custom-light: #5c5981;
$custom-dark: #000000;
JSON
{
  "hex": "#171e50",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 80
  },
  "hsl": {
    "h": 232.632,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26268,
    "c": 0.09134,
    "h": 272.5
  },
  "luminance": 0.0169
}

Semantic roles & 50–950 ramp

primary
#171E50
secondary
#877E3C
accent
#CC49DF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171E50

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

Preview Lab → · Contrast checker → · Palette generator →

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