#171961#171961

#171961 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.0% C 0.124 H 273.2°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#171961
RGBrgb(23, 25, 97)
HSLhsl(238, 62%, 24%)
HSVhsv(238, 76%, 38%)
CMYKcmyk(76.3%, 74.2%, 0%, 62%)
CIE-LABlab(14.06, 25.91, -42.69)
CIE-LCHlch(14.06, 49.94, 301.26°)
OKLaboklab(26.99% 0.007 -0.1234)
OKLCHoklch(26.99% 0.124 273.2)
XYZxyz(2.8579, 1.7402, 11.4922)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171961 #615F17
analogous
#173E61 #171961 #3A1761
triadic
#171961 #611719 #196117
tetradic
#171961 #61173E #615F17 #17613A
square
#171961 #61173E #615F17 #17613A
split-complementary
#171961 #613A17 #3E6117
monochromatic
#060619 #0B0C30 #171961 #232692 #2E33C4

Accessibility & contrast

On white

15.58
#171961 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#171961 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171961
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171961#FFFFFF#000000##FFFFFF
##1719611.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#002060
Tritanopia (blue-blind)
#002D3B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171961;
/* rgb */ color: rgb(23, 25, 97);
/* oklch */ color: oklch(27.0% 0.124 273.2);
Tailwind
colors: {
  custom: {
    50: '#61568f',
    500: '#171961',
    950: '#000000',
  },
}
SCSS
$custom: #171961;
$custom-light: #61568f;
$custom-dark: #000000;
JSON
{
  "hex": "#171961",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 97
  },
  "hsl": {
    "h": 238.378,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.26993,
    "c": 0.12364,
    "h": 273.2
  },
  "luminance": 0.0174
}

Semantic roles & 50–950 ramp

primary
#171961
secondary
#98953C
accent
#E043E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #171961

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

Preview Lab → · Contrast checker → · Palette generator →

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