#171B6E#171B6E

#171B6E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.139 H 271.6°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#171B6E
RGBrgb(23, 27, 110)
HSLhsl(237, 65%, 26%)
HSVhsv(237, 79%, 43%)
CMYKcmyk(79.1%, 75.5%, 0%, 56.9%)
CIE-LABlab(15.96, 29.52, -48.11)
CIE-LCHlch(15.96, 56.44, 301.53°)
OKLaboklab(28.78% 0.0038 -0.1393)
OKLCHoklch(28.78% 0.139 271.6)
XYZxyz(3.5588, 2.0914, 14.9650)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B6E #6E6A17
analogous
#17466E #171B6E #3E176E
triadic
#171B6E #6E171B #1B6E17
tetradic
#171B6E #6E1746 #6E6A17 #176E3E
square
#171B6E #6E1746 #6E6A17 #176E3E
split-complementary
#171B6E #6E3E17 #466E17
monochromatic
#050619 #0C0F3B #171B6E #2227A1 #2C34D3

Accessibility & contrast

On white

14.81
#171B6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B6E
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B6E#FFFFFF#000000##FFFFFF
##171B6E1.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#003342
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171b6e;
/* rgb */ color: rgb(23, 27, 110);
/* oklch */ color: oklch(28.8% 0.139 271.6);
Tailwind
colors: {
  custom: {
    50: '#645899',
    500: '#171b6e',
    950: '#000000',
  },
}
SCSS
$custom: #171b6e;
$custom-light: #645899;
$custom-dark: #000000;
JSON
{
  "hex": "#171b6e",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 110
  },
  "hsl": {
    "h": 237.241,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28784,
    "c": 0.1393,
    "h": 271.6
  },
  "luminance": 0.02092
}

Semantic roles & 50–950 ramp

primary
#171B6E
secondary
#A49F3D
accent
#E13FE8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #171B6E

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

Preview Lab → · Contrast checker → · Palette generator →

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