#171B66#171B66

#171B66 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.9% C 0.128 H 272.2°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#171B66
RGBrgb(23, 27, 102)
HSLhsl(237, 63%, 25%)
HSVhsv(237, 77%, 40%)
CMYKcmyk(77.5%, 73.5%, 0%, 60%)
CIE-LABlab(15.09, 26.48, -44.31)
CIE-LCHlch(15.09, 51.62, 300.86°)
OKLaboklab(27.9% 0.005 -0.1282)
OKLCHoklch(27.9% 0.128 272.2)
XYZxyz(3.1427, 1.9250, 12.7737)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B66 #666217
analogous
#174366 #171B66 #3B1766
triadic
#171B66 #66171B #1B6617
tetradic
#171B66 #661743 #666217 #17663B
square
#171B66 #661743 #666217 #17663B
split-complementary
#171B66 #663B17 #436617
monochromatic
#060719 #0C0E34 #171B66 #222898 #2E35CA

Accessibility & contrast

On white

15.16
#171B66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#171B66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B66
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B66#FFFFFF#000000##FFFFFF
##171B661.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002265
Tritanopia (blue-blind)
#00303E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171b66;
/* rgb */ color: rgb(23, 27, 102);
/* oklch */ color: oklch(27.9% 0.128 272.2);
Tailwind
colors: {
  custom: {
    50: '#625792',
    500: '#171b66',
    950: '#000000',
  },
}
SCSS
$custom: #171b66;
$custom-light: #625792;
$custom-dark: #000000;
JSON
{
  "hex": "#171b66",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 102
  },
  "hsl": {
    "h": 236.962,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.27896,
    "c": 0.12826,
    "h": 272.2
  },
  "luminance": 0.01925
}

Semantic roles & 50–950 ramp

primary
#171B66
secondary
#9C983C
accent
#DE42E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171B66

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

Preview Lab → · Contrast checker → · Palette generator →

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