#171F73#171F73

#171F73 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.142 H 270.4°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#171F73
RGBrgb(23, 31, 115)
HSLhsl(235, 67%, 27%)
HSVhsv(235, 80%, 45%)
CMYKcmyk(80%, 73%, 0%, 54.9%)
CIE-LABlab(17.46, 28.78, -48.88)
CIE-LCHlch(17.46, 56.73, 300.49°)
OKLaboklab(30.02% 0.001 -0.1415)
OKLCHoklch(30.02% 0.142 270.4)
XYZxyz(3.9368, 2.3995, 16.4720)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F73 #736B17
analogous
#174D73 #171F73 #3D1773
triadic
#171F73 #73171F #1F7317
tetradic
#171F73 #73174D #736B17 #17733D
square
#171F73 #73174D #736B17 #17733D
split-complementary
#171F73 #733D17 #4D7317
monochromatic
#05071A #0D1140 #171F73 #212DA6 #2F3DD5

Accessibility & contrast

On white

14.19
#171F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#171F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F73
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F73#FFFFFF#000000##FFFFFF
##171F731.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002671
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171f73;
/* rgb */ color: rgb(23, 31, 115);
/* oklch */ color: oklch(30.0% 0.142 270.4);
Tailwind
colors: {
  custom: {
    50: '#655b9c',
    500: '#171f73',
    950: '#000000',
  },
}
SCSS
$custom: #171f73;
$custom-light: #655b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#171f73",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 234.783,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30024,
    "c": 0.14151,
    "h": 270.4
  },
  "luminance": 0.024
}

Semantic roles & 50–950 ramp

primary
#171F73
secondary
#A99F3D
accent
#DB3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #171F73

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

Preview Lab → · Contrast checker → · Palette generator →

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