#171B6F#171B6F

#171B6F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.141 H 271.5°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#171B6F
RGBrgb(23, 27, 111)
HSLhsl(237, 66%, 26%)
HSVhsv(237, 79%, 44%)
CMYKcmyk(79.3%, 75.7%, 0%, 56.5%)
CIE-LABlab(16.07, 29.89, -48.58)
CIE-LCHlch(16.07, 57.04, 301.60°)
OKLaboklab(28.9% 0.0036 -0.1406)
OKLCHoklch(28.9% 0.141 271.5)
XYZxyz(3.6136, 2.1133, 15.2533)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B6F #6F6B17
analogous
#17476F #171B6F #3F176F
triadic
#171B6F #6F171B #1B6F17
tetradic
#171B6F #6F1747 #6F6B17 #176F3F
square
#171B6F #6F1747 #6F6B17 #176F3F
split-complementary
#171B6F #6F3F17 #476F17
monochromatic
#050619 #0C0F3C #171B6F #2227A2 #2D34D3

Accessibility & contrast

On white

14.76
#171B6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#171B6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B6F
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B6F#FFFFFF#000000##FFFFFF
##171B6F1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C71
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171b6f;
/* rgb */ color: rgb(23, 27, 111);
/* oklch */ color: oklch(28.9% 0.141 271.5);
Tailwind
colors: {
  custom: {
    50: '#655899',
    500: '#171b6f',
    950: '#000000',
  },
}
SCSS
$custom: #171b6f;
$custom-light: #655899;
$custom-dark: #000000;
JSON
{
  "hex": "#171b6f",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 111
  },
  "hsl": {
    "h": 237.273,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28897,
    "c": 0.14066,
    "h": 271.5
  },
  "luminance": 0.02114
}

Semantic roles & 50–950 ramp

primary
#171B6F
secondary
#A5A03D
accent
#E13FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #171B6F

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

Preview Lab → · Contrast checker → · Palette generator →

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