#171D61#171D61

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

Color values

HEX#171D61
RGBrgb(23, 29, 97)
HSLhsl(235, 62%, 24%)
HSVhsv(235, 76%, 38%)
CMYKcmyk(76.3%, 70.1%, 0%, 62%)
CIE-LABlab(15.08, 23.15, -41.01)
CIE-LCHlch(15.08, 47.10, 299.45°)
OKLaboklab(27.73% 0.0042 -0.1185)
OKLCHoklch(27.73% 0.119 272)
XYZxyz(2.9497, 1.9237, 11.5228)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D61 #615B17
analogous
#174261 #171D61 #361761
triadic
#171D61 #61171D #1D6117
tetradic
#171D61 #611742 #615B17 #176136
square
#171D61 #611742 #615B17 #176136
split-complementary
#171D61 #613617 #426117
monochromatic
#060719 #0B0E30 #171D61 #232C92 #2E3BC4

Accessibility & contrast

On white

15.16
#171D61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#171D61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D61
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D61#FFFFFF#000000##FFFFFF
##171D611.0015.161.3815.16
#FFFFFF15.161.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002260
Tritanopia (blue-blind)
#002F3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171d61;
/* rgb */ color: rgb(23, 29, 97);
/* oklch */ color: oklch(27.7% 0.119 272.0);
Tailwind
colors: {
  custom: {
    50: '#61598f',
    500: '#171d61',
    950: '#000000',
  },
}
SCSS
$custom: #171d61;
$custom-light: #61598f;
$custom-dark: #000000;
JSON
{
  "hex": "#171d61",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 97
  },
  "hsl": {
    "h": 235.135,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27733,
    "c": 0.1186,
    "h": 272
  },
  "luminance": 0.01924
}

Semantic roles & 50–950 ramp

primary
#171D61
secondary
#98903C
accent
#D843E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #171D61

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

Preview Lab → · Contrast checker → · Palette generator →

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