#171A80#171A80

#171A80 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.164 H 270.3°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#171A80
RGBrgb(23, 26, 128)
HSLhsl(238, 70%, 30%)
HSVhsv(238, 82%, 50%)
CMYKcmyk(82%, 79.7%, 0%, 49.8%)
CIE-LABlab(17.82, 36.66, -56.60)
CIE-LCHlch(17.82, 67.43, 302.93°)
OKLaboklab(30.72% 0.001 -0.1639)
OKLCHoklch(30.72% 0.164 270.3)
XYZxyz(4.6177, 2.4789, 20.6530)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A80 #807D17
analogous
#174E80 #171A80 #491780
triadic
#171A80 #80171A #1A8017
tetradic
#171A80 #80174E #807D17 #178049
square
#171A80 #80174E #807D17 #178049
split-complementary
#171A80 #804917 #4E8017
monochromatic
#05051A #0E0F4C #171A80 #2025B4 #363BDB

Accessibility & contrast

On white

14.04
#171A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171A80
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A80#FFFFFF#000000##FFFFFF
##171A801.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#00267E
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171a80;
/* rgb */ color: rgb(23, 26, 128);
/* oklch */ color: oklch(30.7% 0.164 270.3);
Tailwind
colors: {
  custom: {
    50: '#6a58a6',
    500: '#171a80',
    950: '#000000',
  },
}
SCSS
$custom: #171a80;
$custom-light: #6a58a6;
$custom-dark: #000000;
JSON
{
  "hex": "#171a80",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 128
  },
  "hsl": {
    "h": 238.286,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30722,
    "c": 0.16391,
    "h": 270.3
  },
  "luminance": 0.02479
}

Semantic roles & 50–950 ramp

primary
#171A80
secondary
#B4B13E
accent
#E73BEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #171A80

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

Preview Lab → · Contrast checker → · Palette generator →

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