#171F72#171F72

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

Color values

HEX#171F72
RGBrgb(23, 31, 114)
HSLhsl(235, 66%, 27%)
HSVhsv(235, 80%, 45%)
CMYKcmyk(79.8%, 72.8%, 0%, 55.3%)
CIE-LABlab(17.35, 28.40, -48.41)
CIE-LCHlch(17.35, 56.13, 300.40°)
OKLaboklab(29.92% 0.0011 -0.1401)
OKLCHoklch(29.92% 0.14 270.4)
XYZxyz(3.8796, 2.3766, 16.1706)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F72 #726A17
analogous
#174D72 #171F72 #3D1772
triadic
#171F72 #72171F #1F7217
tetradic
#171F72 #72174D #726A17 #17723D
square
#171F72 #72174D #726A17 #17723D
split-complementary
#171F72 #723D17 #4D7217
monochromatic
#050719 #0D113F #171F72 #212DA5 #2E3DD5

Accessibility & contrast

On white

14.23
#171F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171F72
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F72#FFFFFF#000000##FFFFFF
##171F721.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171f72;
/* rgb */ color: rgb(23, 31, 114);
/* oklch */ color: oklch(29.9% 0.140 270.4);
Tailwind
colors: {
  custom: {
    50: '#655b9b',
    500: '#171f72',
    950: '#000000',
  },
}
SCSS
$custom: #171f72;
$custom-light: #655b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#171f72",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 234.725,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29915,
    "c": 0.14014,
    "h": 270.4
  },
  "luminance": 0.02377
}

Semantic roles & 50–950 ramp

primary
#171F72
secondary
#A89E3D
accent
#DA3EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #171F72

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

Preview Lab → · Contrast checker → · Palette generator →

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