#171F80#171F80

#171F80 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.159 H 269.7°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#171F80
RGBrgb(23, 31, 128)
HSLhsl(235, 70%, 30%)
HSVhsv(235, 82%, 50%)
CMYKcmyk(82%, 75.8%, 0%, 49.8%)
CIE-LABlab(18.89, 33.65, -54.84)
CIE-LCHlch(18.89, 64.34, 301.53°)
OKLaboklab(31.48% -0.0008 -0.1589)
OKLCHoklch(31.48% 0.159 269.7)
XYZxyz(4.7383, 2.7201, 20.6932)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F80 #807817
analogous
#175380 #171F80 #441780
triadic
#171F80 #80171F #1F8017
tetradic
#171F80 #801753 #807817 #178044
square
#171F80 #801753 #807817 #178044
split-complementary
#171F80 #804417 #538017
monochromatic
#05061A #0E124C #171F80 #202CB4 #3643DB

Accessibility & contrast

On white

13.60
#171F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#171F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F80
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F80#FFFFFF#000000##FFFFFF
##171F801.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171f80;
/* rgb */ color: rgb(23, 31, 128);
/* oklch */ color: oklch(31.5% 0.159 269.7);
Tailwind
colors: {
  custom: {
    50: '#695ba6',
    500: '#171f80',
    950: '#000000',
  },
}
SCSS
$custom: #171f80;
$custom-light: #695ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#171f80",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 235.429,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31476,
    "c": 0.15886,
    "h": 269.7
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#171F80
secondary
#B4AB3E
accent
#DF3BEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171F80

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

Preview Lab → · Contrast checker → · Palette generator →

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