#171B7F#171B7F

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

Color values

HEX#171B7F
RGBrgb(23, 27, 127)
HSLhsl(238, 69%, 29%)
HSVhsv(238, 82%, 50%)
CMYKcmyk(81.9%, 78.7%, 0%, 50.2%)
CIE-LABlab(17.91, 35.72, -55.82)
CIE-LCHlch(17.91, 66.27, 302.61°)
OKLaboklab(30.75% 0.0009 -0.1617)
OKLCHoklch(30.75% 0.162 270.3)
XYZxyz(4.5747, 2.4978, 20.3156)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B7F #7F7B17
analogous
#174F7F #171B7F #47177F
triadic
#171B7F #7F171B #1B7F17
tetradic
#171B7F #7F174F #7F7B17 #177F47
square
#171B7F #7F174F #7F7B17 #177F47
split-complementary
#171B7F #7F4717 #4F7F17
monochromatic
#05061A #0E104B #171B7F #2026B3 #363CDB

Accessibility & contrast

On white

14.00
#171B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B7F
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B7F#FFFFFF#000000##FFFFFF
##171B7F1.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171b7f;
/* rgb */ color: rgb(23, 27, 127);
/* oklch */ color: oklch(30.7% 0.162 270.3);
Tailwind
colors: {
  custom: {
    50: '#6959a5',
    500: '#171b7f',
    950: '#000000',
  },
}
SCSS
$custom: #171b7f;
$custom-light: #6959a5;
$custom-dark: #000000;
JSON
{
  "hex": "#171b7f",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 237.692,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30747,
    "c": 0.16167,
    "h": 270.3
  },
  "luminance": 0.02498
}

Semantic roles & 50–950 ramp

primary
#171B7F
secondary
#B4AF3E
accent
#E53CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #171B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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