#171B6B#171B6B

#171B6B is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.135 H 271.8°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#171B6B
RGBrgb(23, 27, 107)
HSLhsl(237, 65%, 25%)
HSVhsv(237, 79%, 42%)
CMYKcmyk(78.5%, 74.8%, 0%, 58%)
CIE-LABlab(15.63, 28.38, -46.70)
CIE-LCHlch(15.63, 54.65, 301.29°)
OKLaboklab(28.45% 0.0042 -0.1351)
OKLCHoklch(28.45% 0.135 271.8)
XYZxyz(3.3982, 2.0272, 14.1193)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B6B #6B6717
analogous
#17456B #171B6B #3D176B
triadic
#171B6B #6B171B #1B6B17
tetradic
#171B6B #6B1745 #6B6717 #176B3D
square
#171B6B #6B1745 #6B6717 #176B3D
split-complementary
#171B6B #6B3D17 #456B17
monochromatic
#050619 #0C0E39 #171B6B #22289D #2D34D0

Accessibility & contrast

On white

14.94
#171B6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B6B
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B6B#FFFFFF#000000##FFFFFF
##171B6B1.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#00236A
Tritanopia (blue-blind)
#003141
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171b6b;
/* rgb */ color: rgb(23, 27, 107);
/* oklch */ color: oklch(28.4% 0.135 271.8);
Tailwind
colors: {
  custom: {
    50: '#645896',
    500: '#171b6b',
    950: '#000000',
  },
}
SCSS
$custom: #171b6b;
$custom-light: #645896;
$custom-dark: #000000;
JSON
{
  "hex": "#171b6b",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 107
  },
  "hsl": {
    "h": 237.143,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28448,
    "c": 0.13521,
    "h": 271.8
  },
  "luminance": 0.02028
}

Semantic roles & 50–950 ramp

primary
#171B6B
secondary
#A19C3D
accent
#E040E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171B6B

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

Preview Lab → · Contrast checker → · Palette generator →

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