#171B63#171B63

#171B63 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.6% C 0.124 H 272.5°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#171B63
RGBrgb(23, 27, 99)
HSLhsl(237, 62%, 24%)
HSVhsv(237, 77%, 39%)
CMYKcmyk(76.8%, 72.7%, 0%, 61.2%)
CIE-LABlab(14.77, 25.32, -42.85)
CIE-LCHlch(14.77, 49.77, 300.58°)
OKLaboklab(27.57% 0.0054 -0.1239)
OKLCHoklch(27.57% 0.124 272.5)
XYZxyz(2.9967, 1.8666, 12.0043)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B63 #635F17
analogous
#174163 #171B63 #391763
triadic
#171B63 #63171B #1B6317
tetradic
#171B63 #631741 #635F17 #176339
square
#171B63 #631741 #635F17 #176339
split-complementary
#171B63 #633917 #416317
monochromatic
#060719 #0B0D31 #171B63 #232995 #2E36C6

Accessibility & contrast

On white

15.29
#171B63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#171B63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B63
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B63#FFFFFF#000000##FFFFFF
##171B631.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002965
Deuteranopia (green-blind)
#002262
Tritanopia (blue-blind)
#002F3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171b63;
/* rgb */ color: rgb(23, 27, 99);
/* oklch */ color: oklch(27.6% 0.124 272.5);
Tailwind
colors: {
  custom: {
    50: '#615790',
    500: '#171b63',
    950: '#000000',
  },
}
SCSS
$custom: #171b63;
$custom-light: #615790;
$custom-dark: #000000;
JSON
{
  "hex": "#171b63",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 99
  },
  "hsl": {
    "h": 236.842,
    "s": 62.295,
    "l": 23.922
  },
  "oklch": {
    "l": 0.2757,
    "c": 0.12402,
    "h": 272.5
  },
  "luminance": 0.01867
}

Semantic roles & 50–950 ramp

primary
#171B63
secondary
#9A953C
accent
#DD42E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030D
muted
#7A787D

Preview Lab

Preview with #171B63

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

Preview Lab → · Contrast checker → · Palette generator →

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