#171957#171957

#171957 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.109 H 274.3°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#171957
RGBrgb(23, 25, 87)
HSLhsl(238, 58%, 22%)
HSVhsv(238, 74%, 34%)
CMYKcmyk(73.6%, 71.3%, 0%, 65.9%)
CIE-LABlab(13.02, 22.03, -37.70)
CIE-LCHlch(13.02, 43.67, 300.31°)
OKLaboklab(25.92% 0.0083 -0.1088)
OKLCHoklch(25.92% 0.109 274.3)
XYZxyz(2.4207, 1.5653, 9.1895)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171957 #575517
analogous
#173957 #171957 #351757
triadic
#171957 #571719 #195717
tetradic
#171957 #571739 #575517 #175735
square
#171957 #571739 #575517 #175735
split-complementary
#171957 #573517 #395717
monochromatic
#060718 #0A0B27 #171957 #242787 #3135B8

Accessibility & contrast

On white

15.99
#171957 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#171957 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171957
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171957#FFFFFF#000000##FFFFFF
##1719571.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#001F56
Tritanopia (blue-blind)
#002935
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171957;
/* rgb */ color: rgb(23, 25, 87);
/* oklch */ color: oklch(25.9% 0.109 274.3);
Tailwind
colors: {
  custom: {
    50: '#5e5687',
    500: '#171957',
    950: '#000000',
  },
}
SCSS
$custom: #171957;
$custom-light: #5e5687;
$custom-dark: #000000;
JSON
{
  "hex": "#171957",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 87
  },
  "hsl": {
    "h": 238.125,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2592,
    "c": 0.10915,
    "h": 274.3
  },
  "luminance": 0.01566
}

Semantic roles & 50–950 ramp

primary
#171957
secondary
#8E8B3C
accent
#DD46E1
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171957

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

Preview Lab → · Contrast checker → · Palette generator →

#171957 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva