#171F76#171F76

#171F76 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.146 H 270.2°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#171F76
RGBrgb(23, 31, 118)
HSLhsl(235, 67%, 28%)
HSVhsv(235, 81%, 46%)
CMYKcmyk(80.5%, 73.7%, 0%, 53.7%)
CIE-LABlab(17.78, 29.92, -50.28)
CIE-LCHlch(17.78, 58.51, 300.76°)
OKLaboklab(30.35% 0.0006 -0.1456)
OKLCHoklch(30.35% 0.146 270.2)
XYZxyz(4.1122, 2.4697, 17.3960)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F76 #766E17
analogous
#174F76 #171F76 #3E1776
triadic
#171F76 #76171F #1F7617
tetradic
#171F76 #76174F #766E17 #17763E
square
#171F76 #76174F #766E17 #17763E
split-complementary
#171F76 #763E17 #4F7617
monochromatic
#05071A #0D1243 #171F76 #212CA9 #313FD7

Accessibility & contrast

On white

14.06
#171F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#171F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F76
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F76#FFFFFF#000000##FFFFFF
##171F761.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002774
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171f76;
/* rgb */ color: rgb(23, 31, 118);
/* oklch */ color: oklch(30.4% 0.146 270.2);
Tailwind
colors: {
  custom: {
    50: '#665b9e',
    500: '#171f76',
    950: '#000000',
  },
}
SCSS
$custom: #171f76;
$custom-light: #665b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#171f76",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 234.947,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30354,
    "c": 0.14559,
    "h": 270.2
  },
  "luminance": 0.0247
}

Semantic roles & 50–950 ramp

primary
#171F76
secondary
#ABA23E
accent
#DC3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #171F76

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

Preview Lab → · Contrast checker → · Palette generator →

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