#171A5E#171A5E

#171A5E is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.8% C 0.118 H 273.2°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#171A5E
RGBrgb(23, 26, 94)
HSLhsl(237, 61%, 23%)
HSVhsv(237, 76%, 37%)
CMYKcmyk(75.5%, 72.3%, 0%, 63.1%)
CIE-LABlab(13.99, 24.07, -40.80)
CIE-LCHlch(13.99, 47.37, 300.54°)
OKLaboklab(26.85% 0.0067 -0.1179)
OKLCHoklch(26.85% 0.118 273.2)
XYZxyz(2.7424, 1.7288, 10.7767)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A5E #5E5B17
analogous
#173D5E #171A5E #37175E
triadic
#171A5E #5E171A #1A5E17
tetradic
#171A5E #5E173D #5E5B17 #175E37
square
#171A5E #5E173D #5E5B17 #175E37
split-complementary
#171A5E #5E3717 #3D5E17
monochromatic
#060719 #0B0C2D #171A5E #23288F #2F35C0

Accessibility & contrast

On white

15.60
#171A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171A5E
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A5E#FFFFFF#000000##FFFFFF
##171A5E1.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#002C39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171a5e;
/* rgb */ color: rgb(23, 26, 94);
/* oklch */ color: oklch(26.8% 0.118 273.2);
Tailwind
colors: {
  custom: {
    50: '#60568c',
    500: '#171a5e',
    950: '#000000',
  },
}
SCSS
$custom: #171a5e;
$custom-light: #60568c;
$custom-dark: #000000;
JSON
{
  "hex": "#171a5e",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 94
  },
  "hsl": {
    "h": 237.465,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.26849,
    "c": 0.1181,
    "h": 273.2
  },
  "luminance": 0.01729
}

Semantic roles & 50–950 ramp

primary
#171A5E
secondary
#95913C
accent
#DD44E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #171A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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