#171B6C#171B6C

#171B6C is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.137 H 271.7°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#171B6C
RGBrgb(23, 27, 108)
HSLhsl(237, 65%, 26%)
HSVhsv(237, 79%, 42%)
CMYKcmyk(78.7%, 75%, 0%, 57.6%)
CIE-LABlab(15.74, 28.76, -47.17)
CIE-LCHlch(15.74, 55.25, 301.37°)
OKLaboklab(28.56% 0.0041 -0.1365)
OKLCHoklch(28.56% 0.137 271.7)
XYZxyz(3.4511, 2.0484, 14.3979)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B6C #6C6817
analogous
#17456C #171B6C #3D176C
triadic
#171B6C #6C171B #1B6C17
tetradic
#171B6C #6C1745 #6C6817 #176C3D
square
#171B6C #6C1745 #6C6817 #176C3D
split-complementary
#171B6C #6C3D17 #456C17
monochromatic
#050619 #0C0E3A #171B6C #22289E #2C34D1

Accessibility & contrast

On white

14.90
#171B6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#171B6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B6C
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B6C#FFFFFF#000000##FFFFFF
##171B6C1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00236B
Tritanopia (blue-blind)
#003241
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171b6c;
/* rgb */ color: rgb(23, 27, 108);
/* oklch */ color: oklch(28.6% 0.137 271.7);
Tailwind
colors: {
  custom: {
    50: '#645897',
    500: '#171b6c',
    950: '#000000',
  },
}
SCSS
$custom: #171b6c;
$custom-light: #645897;
$custom-dark: #000000;
JSON
{
  "hex": "#171b6c",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 108
  },
  "hsl": {
    "h": 237.176,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2856,
    "c": 0.13658,
    "h": 271.7
  },
  "luminance": 0.02049
}

Semantic roles & 50–950 ramp

primary
#171B6C
secondary
#A29D3D
accent
#E040E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #171B6C

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

Preview Lab → · Contrast checker → · Palette generator →

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