#171F61#171F61

#171F61 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.1% C 0.116 H 271.3°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#171F61
RGBrgb(23, 31, 97)
HSLhsl(234, 62%, 24%)
HSVhsv(234, 76%, 38%)
CMYKcmyk(76.3%, 68%, 0%, 62%)
CIE-LABlab(15.62, 21.74, -40.13)
CIE-LCHlch(15.62, 45.64, 298.44°)
OKLaboklab(28.13% 0.0027 -0.1159)
OKLCHoklch(28.13% 0.116 271.3)
XYZxyz(3.0003, 2.0249, 11.5397)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F61 #615917
analogous
#174461 #171F61 #341761
triadic
#171F61 #61171F #1F6117
tetradic
#171F61 #611744 #615917 #176134
square
#171F61 #611744 #615917 #176134
split-complementary
#171F61 #613417 #446117
monochromatic
#060819 #0B0F30 #171F61 #232F92 #2E3FC4

Accessibility & contrast

On white

14.95
#171F61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#171F61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F61
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F61#FFFFFF#000000##FFFFFF
##171F611.0014.951.4114.95
#FFFFFF14.951.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A63
Deuteranopia (green-blind)
#002460
Tritanopia (blue-blind)
#00303C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171f61;
/* rgb */ color: rgb(23, 31, 97);
/* oklch */ color: oklch(28.1% 0.116 271.3);
Tailwind
colors: {
  custom: {
    50: '#605a8f',
    500: '#171f61',
    950: '#000000',
  },
}
SCSS
$custom: #171f61;
$custom-light: #605a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#171f61",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 97
  },
  "hsl": {
    "h": 233.514,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28125,
    "c": 0.11597,
    "h": 271.3
  },
  "luminance": 0.02025
}

Semantic roles & 50–950 ramp

primary
#171F61
secondary
#988E3C
accent
#D343E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #171F61

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

Preview Lab → · Contrast checker → · Palette generator →

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