#171E7A#171E7A

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

Color values

HEX#171E7A
RGBrgb(23, 30, 122)
HSLhsl(236, 68%, 28%)
HSVhsv(236, 81%, 48%)
CMYKcmyk(81.1%, 75.4%, 0%, 52.2%)
CIE-LABlab(17.99, 32.06, -52.50)
CIE-LCHlch(17.99, 61.52, 301.41°)
OKLaboklab(30.63% 0.0005 -0.1521)
OKLCHoklch(30.63% 0.152 270.2)
XYZxyz(4.3293, 2.5154, 18.6659)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E7A #7A7317
analogous
#174F7A #171E7A #41177A
triadic
#171E7A #7A171E #1E7A17
tetradic
#171E7A #7A174F #7A7317 #177A41
square
#171E7A #7A174F #7A7317 #177A41
split-complementary
#171E7A #7A4117 #4F7A17
monochromatic
#05061A #0D1147 #171E7A #212BAD #333FD9

Accessibility & contrast

On white

13.97
#171E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#171E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E7A
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E7A#FFFFFF#000000##FFFFFF
##171E7A1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002778
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171e7a;
/* rgb */ color: rgb(23, 30, 122);
/* oklch */ color: oklch(30.6% 0.152 270.2);
Tailwind
colors: {
  custom: {
    50: '#675aa1',
    500: '#171e7a',
    950: '#000000',
  },
}
SCSS
$custom: #171e7a;
$custom-light: #675aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#171e7a",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 235.758,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30634,
    "c": 0.15206,
    "h": 270.2
  },
  "luminance": 0.02516
}

Semantic roles & 50–950 ramp

primary
#171E7A
secondary
#AFA73E
accent
#DF3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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