#171B72#171B72

#171B72 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.2% C 0.145 H 271.2°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#171B72
RGBrgb(23, 27, 114)
HSLhsl(237, 66%, 27%)
HSVhsv(237, 80%, 45%)
CMYKcmyk(79.8%, 76.3%, 0%, 55.3%)
CIE-LABlab(16.41, 31.00, -49.97)
CIE-LCHlch(16.41, 58.81, 301.82°)
OKLaboklab(29.24% 0.0031 -0.1447)
OKLCHoklch(29.24% 0.145 271.2)
XYZxyz(3.7815, 2.1805, 16.1379)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B72 #726E17
analogous
#174972 #171B72 #411772
triadic
#171B72 #72171B #1B7217
tetradic
#171B72 #721749 #726E17 #177241
square
#171B72 #721749 #726E17 #177241
split-complementary
#171B72 #724117 #497217
monochromatic
#050619 #0D0F3F #171B72 #2127A5 #2E36D5

Accessibility & contrast

On white

14.62
#171B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#171B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B72
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B72#FFFFFF#000000##FFFFFF
##171B721.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002470
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171b72;
/* rgb */ color: rgb(23, 27, 114);
/* oklch */ color: oklch(29.2% 0.145 271.2);
Tailwind
colors: {
  custom: {
    50: '#66589c',
    500: '#171b72',
    950: '#000000',
  },
}
SCSS
$custom: #171b72;
$custom-light: #66589c;
$custom-dark: #000000;
JSON
{
  "hex": "#171b72",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 237.363,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29238,
    "c": 0.14469,
    "h": 271.2
  },
  "luminance": 0.02181
}

Semantic roles & 50–950 ramp

primary
#171B72
secondary
#A8A33D
accent
#E23EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171B72

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

Preview Lab → · Contrast checker → · Palette generator →

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