#171B74#171B74

#171B74 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.147 H 271.1°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#171B74
RGBrgb(23, 27, 116)
HSLhsl(237, 67%, 27%)
HSVhsv(237, 80%, 45%)
CMYKcmyk(80.2%, 76.7%, 0%, 54.5%)
CIE-LABlab(16.63, 31.74, -50.89)
CIE-LCHlch(16.63, 59.97, 301.96°)
OKLaboklab(29.47% 0.0028 -0.1473)
OKLCHoklch(29.47% 0.147 271.1)
XYZxyz(3.8966, 2.2266, 16.7440)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B74 #747017
analogous
#174A74 #171B74 #411774
triadic
#171B74 #74171B #1B7417
tetradic
#171B74 #74174A #747017 #177441
square
#171B74 #74174A #747017 #177441
split-complementary
#171B74 #744117 #4A7417
monochromatic
#05061A #0D0F41 #171B74 #2127A7 #3037D6

Accessibility & contrast

On white

14.53
#171B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#171B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B74
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B74#FFFFFF#000000##FFFFFF
##171B741.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002472
Tritanopia (blue-blind)
#003546
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171b74;
/* rgb */ color: rgb(23, 27, 116);
/* oklch */ color: oklch(29.5% 0.147 271.1);
Tailwind
colors: {
  custom: {
    50: '#66589d',
    500: '#171b74',
    950: '#000000',
  },
}
SCSS
$custom: #171b74;
$custom-light: #66589d;
$custom-dark: #000000;
JSON
{
  "hex": "#171b74",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 237.419,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.29466,
    "c": 0.14736,
    "h": 271.1
  },
  "luminance": 0.02227
}

Semantic roles & 50–950 ramp

primary
#171B74
secondary
#A9A53D
accent
#E23EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171B74

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

Preview Lab → · Contrast checker → · Palette generator →

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