#171E40#171E40

#171E40 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.9% C 0.065 H 272.2°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#171E40
RGBrgb(23, 30, 64)
HSLhsl(230, 47%, 17%)
HSVhsv(230, 64%, 25%)
CMYKcmyk(64.1%, 53.1%, 0%, 74.9%)
CIE-LABlab(12.48, 9.07, -22.72)
CIE-LCHlch(12.48, 24.46, 291.76°)
OKLaboklab(24.89% 0.0024 -0.0648)
OKLCHoklch(24.89% 0.065 272.2)
XYZxyz(1.7427, 1.4807, 5.0435)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E40 #403917
analogous
#173340 #171E40 #251740
triadic
#171E40 #40171E #1E4017
tetradic
#171E40 #401733 #403917 #174025
square
#171E40 #401733 #403917 #174025
split-complementary
#171E40 #402517 #334017
monochromatic
#080B17 #080B17 #171E40 #27336D #37489A

Accessibility & contrast

On white

16.20
#171E40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#171E40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E40
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E40#FFFFFF#000000##FFFFFF
##171E401.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2241
Deuteranopia (green-blind)
#091F3F
Tritanopia (blue-blind)
#02262B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #171e40;
/* rgb */ color: rgb(23, 30, 64);
/* oklch */ color: oklch(24.9% 0.065 272.2);
Tailwind
colors: {
  custom: {
    50: '#585975',
    500: '#171e40',
    950: '#000000',
  },
}
SCSS
$custom: #171e40;
$custom-light: #585975;
$custom-dark: #000000;
JSON
{
  "hex": "#171e40",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 64
  },
  "hsl": {
    "h": 229.756,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.24894,
    "c": 0.06481,
    "h": 272.2
  },
  "luminance": 0.01481
}

Semantic roles & 50–950 ramp

primary
#171E40
secondary
#776D3C
accent
#C051D7
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #171E40

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

Preview Lab → · Contrast checker → · Palette generator →

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