#171F74#171F74

#171F74 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.143 H 270.3°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#171F74
RGBrgb(23, 31, 116)
HSLhsl(235, 67%, 27%)
HSVhsv(235, 80%, 45%)
CMYKcmyk(80.2%, 73.3%, 0%, 54.5%)
CIE-LABlab(17.56, 29.16, -49.35)
CIE-LCHlch(17.56, 57.32, 300.58°)
OKLaboklab(30.13% 0.0008 -0.1429)
OKLCHoklch(30.13% 0.143 270.3)
XYZxyz(3.9946, 2.4226, 16.7767)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F74 #746C17
analogous
#174D74 #171F74 #3E1774
triadic
#171F74 #74171F #1F7417
tetradic
#171F74 #74174D #746C17 #17743E
square
#171F74 #74174D #746C17 #17743E
split-complementary
#171F74 #743E17 #4D7417
monochromatic
#05071A #0D1141 #171F74 #212DA7 #303ED6

Accessibility & contrast

On white

14.15
#171F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171F74
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F74#FFFFFF#000000##FFFFFF
##171F741.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171f74;
/* rgb */ color: rgb(23, 31, 116);
/* oklch */ color: oklch(30.1% 0.143 270.3);
Tailwind
colors: {
  custom: {
    50: '#665b9d',
    500: '#171f74',
    950: '#000000',
  },
}
SCSS
$custom: #171f74;
$custom-light: #665b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#171f74",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 234.839,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30134,
    "c": 0.14288,
    "h": 270.3
  },
  "luminance": 0.02423
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171F74

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

Preview Lab → · Contrast checker → · Palette generator →

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