#171E80#171E80

#171E80 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.160 H 269.8°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#171E80
RGBrgb(23, 30, 128)
HSLhsl(236, 70%, 30%)
HSVhsv(236, 82%, 50%)
CMYKcmyk(82%, 76.6%, 0%, 49.8%)
CIE-LABlab(18.66, 34.27, -55.20)
CIE-LCHlch(18.66, 64.98, 301.83°)
OKLaboklab(31.32% -0.0004 -0.1599)
OKLCHoklch(31.32% 0.16 269.8)
XYZxyz(4.7126, 2.6687, 20.6846)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E80 #807917
analogous
#175380 #171E80 #451780
triadic
#171E80 #80171E #1E8017
tetradic
#171E80 #801753 #807917 #178045
square
#171E80 #801753 #807917 #178045
split-complementary
#171E80 #804517 #538017
monochromatic
#05061A #0E124C #171E80 #202AB4 #3641DB

Accessibility & contrast

On white

13.69
#171E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#171E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E80
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E80#FFFFFF#000000##FFFFFF
##171E801.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #171e80;
/* rgb */ color: rgb(23, 30, 128);
/* oklch */ color: oklch(31.3% 0.160 269.8);
Tailwind
colors: {
  custom: {
    50: '#695ba6',
    500: '#171e80',
    950: '#000000',
  },
}
SCSS
$custom: #171e80;
$custom-light: #695ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#171e80",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 128
  },
  "hsl": {
    "h": 236,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31318,
    "c": 0.15991,
    "h": 269.8
  },
  "luminance": 0.02669
}

Semantic roles & 50–950 ramp

primary
#171E80
secondary
#B4AD3E
accent
#E13BEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #171E80

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

Preview Lab → · Contrast checker → · Palette generator →

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