#171A72#171A72

#171A72 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.146 H 271.4°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#171A72
RGBrgb(23, 26, 114)
HSLhsl(238, 66%, 27%)
HSVhsv(238, 80%, 45%)
CMYKcmyk(79.8%, 77.2%, 0%, 55.3%)
CIE-LABlab(16.18, 31.64, -50.34)
CIE-LCHlch(16.18, 59.45, 302.15°)
OKLaboklab(29.08% 0.0036 -0.1457)
OKLCHoklch(29.08% 0.146 271.4)
XYZxyz(3.7590, 2.1354, 16.1304)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A72 #726F17
analogous
#174872 #171A72 #421772
triadic
#171A72 #72171A #1A7217
tetradic
#171A72 #721748 #726F17 #177242
square
#171A72 #721748 #726F17 #177242
split-complementary
#171A72 #724217 #487217
monochromatic
#050619 #0D0E3F #171A72 #2126A5 #2E34D5

Accessibility & contrast

On white

14.71
#171A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#171A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A72
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A72#FFFFFF#000000##FFFFFF
##171A721.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002470
Tritanopia (blue-blind)
#003444
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171a72;
/* rgb */ color: rgb(23, 26, 114);
/* oklch */ color: oklch(29.1% 0.146 271.4);
Tailwind
colors: {
  custom: {
    50: '#66579c',
    500: '#171a72',
    950: '#000000',
  },
}
SCSS
$custom: #171a72;
$custom-light: #66579c;
$custom-dark: #000000;
JSON
{
  "hex": "#171a72",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 238.022,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29077,
    "c": 0.14578,
    "h": 271.4
  },
  "luminance": 0.02136
}

Semantic roles & 50–950 ramp

primary
#171A72
secondary
#A8A43D
accent
#E43EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171A72

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

Preview Lab → · Contrast checker → · Palette generator →

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