#171B68#171B68

#171B68 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.1% C 0.131 H 272.0°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#171B68
RGBrgb(23, 27, 104)
HSLhsl(237, 64%, 25%)
HSVhsv(237, 78%, 41%)
CMYKcmyk(77.9%, 74%, 0%, 59.2%)
CIE-LABlab(15.30, 27.24, -45.27)
CIE-LCHlch(15.30, 52.83, 301.04°)
OKLaboklab(28.12% 0.0047 -0.131)
OKLCHoklch(28.12% 0.131 272)
XYZxyz(3.2431, 1.9652, 13.3024)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B68 #686417
analogous
#174468 #171B68 #3C1768
triadic
#171B68 #68171B #1B6817
tetradic
#171B68 #681744 #686417 #17683C
square
#171B68 #681744 #686417 #17683C
split-complementary
#171B68 #683C17 #446817
monochromatic
#060719 #0C0E36 #171B68 #22289A #2D35CC

Accessibility & contrast

On white

15.07
#171B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B68
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B68#FFFFFF#000000##FFFFFF
##171B681.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002267
Tritanopia (blue-blind)
#00303F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171b68;
/* rgb */ color: rgb(23, 27, 104);
/* oklch */ color: oklch(28.1% 0.131 272.0);
Tailwind
colors: {
  custom: {
    50: '#635894',
    500: '#171b68',
    950: '#000000',
  },
}
SCSS
$custom: #171b68;
$custom-light: #635894;
$custom-dark: #000000;
JSON
{
  "hex": "#171b68",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 237.037,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28115,
    "c": 0.13105,
    "h": 272
  },
  "luminance": 0.01966
}

Semantic roles & 50–950 ramp

primary
#171B68
secondary
#9E993D
accent
#DF41E7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171B68

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

Preview Lab → · Contrast checker → · Palette generator →

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