#171E5F#171E5F

#171E5F is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.7% C 0.114 H 271.8°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#171E5F
RGBrgb(23, 30, 95)
HSLhsl(234, 61%, 23%)
HSVhsv(234, 76%, 37%)
CMYKcmyk(75.8%, 68.4%, 0%, 62.7%)
CIE-LABlab(15.15, 21.65, -39.57)
CIE-LCHlch(15.15, 45.11, 298.69°)
OKLaboklab(27.72% 0.0036 -0.1143)
OKLCHoklch(27.72% 0.114 271.8)
XYZxyz(2.8825, 1.9366, 11.0462)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E5F #5F5817
analogous
#17425F #171E5F #34175F
triadic
#171E5F #5F171E #1E5F17
tetradic
#171E5F #5F1742 #5F5817 #175F34
square
#171E5F #5F1742 #5F5817 #175F34
split-complementary
#171E5F #5F3417 #425F17
monochromatic
#060819 #0B0E2E #171E5F #232E90 #2F3DC2

Accessibility & contrast

On white

15.14
#171E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#171E5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E5F
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E5F#FFFFFF#000000##FFFFFF
##171E5F1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#002F3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171e5f;
/* rgb */ color: rgb(23, 30, 95);
/* oklch */ color: oklch(27.7% 0.114 271.8);
Tailwind
colors: {
  custom: {
    50: '#60598d',
    500: '#171e5f',
    950: '#000000',
  },
}
SCSS
$custom: #171e5f;
$custom-light: #60598d;
$custom-dark: #000000;
JSON
{
  "hex": "#171e5f",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 95
  },
  "hsl": {
    "h": 234.167,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27723,
    "c": 0.11435,
    "h": 271.8
  },
  "luminance": 0.01937
}

Semantic roles & 50–950 ramp

primary
#171E5F
secondary
#968D3C
accent
#D544E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #171E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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