#171B7E#171B7E

#171B7E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.160 H 270.4°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#171B7E
RGBrgb(23, 27, 126)
HSLhsl(238, 69%, 29%)
HSVhsv(238, 82%, 49%)
CMYKcmyk(81.7%, 78.6%, 0%, 50.6%)
CIE-LABlab(17.79, 35.36, -55.38)
CIE-LCHlch(17.79, 65.71, 302.56°)
OKLaboklab(30.63% 0.001 -0.1604)
OKLCHoklch(30.63% 0.16 270.4)
XYZxyz(4.5099, 2.4719, 19.9740)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B7E #7E7A17
analogous
#174F7E #171B7E #47177E
triadic
#171B7E #7E171B #1B7E17
tetradic
#171B7E #7E174F #7E7A17 #177E47
square
#171B7E #7E174F #7E7A17 #177E47
split-complementary
#171B7E #7E4717 #4F7E17
monochromatic
#05061A #0E104A #171B7E #2026B2 #353CDA

Accessibility & contrast

On white

14.05
#171B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#171B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B7E
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B7E#FFFFFF#000000##FFFFFF
##171B7E1.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171b7e;
/* rgb */ color: rgb(23, 27, 126);
/* oklch */ color: oklch(30.6% 0.160 270.4);
Tailwind
colors: {
  custom: {
    50: '#6959a5',
    500: '#171b7e',
    950: '#000000',
  },
}
SCSS
$custom: #171b7e;
$custom-light: #6959a5;
$custom-dark: #000000;
JSON
{
  "hex": "#171b7e",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 237.67,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3063,
    "c": 0.16039,
    "h": 270.4
  },
  "luminance": 0.02472
}

Semantic roles & 50–950 ramp

primary
#171B7E
secondary
#B3AE3E
accent
#E53CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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