#171B80#171B80

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

Color values

HEX#171B80
RGBrgb(23, 27, 128)
HSLhsl(238, 70%, 30%)
HSVhsv(238, 82%, 50%)
CMYKcmyk(82%, 78.9%, 0%, 49.8%)
CIE-LABlab(18.03, 36.07, -56.26)
CIE-LCHlch(18.03, 66.83, 302.67°)
OKLaboklab(30.87% 0.0007 -0.163)
OKLCHoklch(30.87% 0.163 270.2)
XYZxyz(4.6402, 2.5240, 20.6605)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B80 #807C17
analogous
#175080 #171B80 #471780
triadic
#171B80 #80171B #1B8017
tetradic
#171B80 #801750 #807C17 #178047
square
#171B80 #801750 #807C17 #178047
split-complementary
#171B80 #804717 #508017
monochromatic
#05051A #0E104C #171B80 #2026B4 #363DDB

Accessibility & contrast

On white

13.95
#171B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#171B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B80
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B80#FFFFFF#000000##FFFFFF
##171B801.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171b80;
/* rgb */ color: rgb(23, 27, 128);
/* oklch */ color: oklch(30.9% 0.163 270.2);
Tailwind
colors: {
  custom: {
    50: '#6959a6',
    500: '#171b80',
    950: '#000000',
  },
}
SCSS
$custom: #171b80;
$custom-light: #6959a6;
$custom-dark: #000000;
JSON
{
  "hex": "#171b80",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 237.714,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30866,
    "c": 0.16295,
    "h": 270.2
  },
  "luminance": 0.02525
}

Semantic roles & 50–950 ramp

primary
#171B80
secondary
#B4B03E
accent
#E63BEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #171B80

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

Preview Lab → · Contrast checker → · Palette generator →

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