#171A7D#171A7D

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

Color values

HEX#171A7D
RGBrgb(23, 26, 125)
HSLhsl(238, 69%, 29%)
HSVhsv(238, 82%, 49%)
CMYKcmyk(81.6%, 79.2%, 0%, 51%)
CIE-LABlab(17.47, 35.60, -55.28)
CIE-LCHlch(17.47, 65.75, 302.78°)
OKLaboklab(30.37% 0.0016 -0.1601)
OKLCHoklch(30.37% 0.16 270.6)
XYZxyz(4.4232, 2.4011, 19.6284)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A7D #7D7A17
analogous
#174D7D #171A7D #47177D
triadic
#171A7D #7D171A #1A7D17
tetradic
#171A7D #7D174D #7D7A17 #177D47
square
#171A7D #7D174D #7D7A17 #177D47
split-complementary
#171A7D #7D4717 #4D7D17
monochromatic
#05051A #0D0F49 #171A7D #2125B1 #3539DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##171A7D#FFFFFF#000000##FFFFFF
##171A7D1.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)
#003080
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171a7d;
/* rgb */ color: rgb(23, 26, 125);
/* oklch */ color: oklch(30.4% 0.160 270.6);
Tailwind
colors: {
  custom: {
    50: '#6958a4',
    500: '#171a7d',
    950: '#000000',
  },
}
SCSS
$custom: #171a7d;
$custom-light: #6958a4;
$custom-dark: #000000;
JSON
{
  "hex": "#171a7d",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 238.235,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30365,
    "c": 0.16011,
    "h": 270.6
  },
  "luminance": 0.02402
}

Semantic roles & 50–950 ramp

primary
#171A7D
secondary
#B2AE3E
accent
#E73CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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