#171B64#171B64

#171B64 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.7% C 0.125 H 272.4°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#171B64
RGBrgb(23, 27, 100)
HSLhsl(237, 63%, 24%)
HSVhsv(237, 77%, 39%)
CMYKcmyk(77%, 73%, 0%, 60.8%)
CIE-LABlab(14.88, 25.71, -43.34)
CIE-LCHlch(14.88, 50.39, 300.68°)
OKLaboklab(27.68% 0.0052 -0.1253)
OKLCHoklch(27.68% 0.125 272.4)
XYZxyz(3.0448, 1.8858, 12.2577)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B64 #646017
analogous
#174264 #171B64 #3A1764
triadic
#171B64 #64171B #1B6417
tetradic
#171B64 #641742 #646017 #17643A
square
#171B64 #641742 #646017 #17643A
split-complementary
#171B64 #643A17 #426417
monochromatic
#060719 #0C0E32 #171B64 #222896 #2E36C8

Accessibility & contrast

On white

15.25
#171B64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#171B64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B64
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B64#FFFFFF#000000##FFFFFF
##171B641.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002263
Tritanopia (blue-blind)
#002F3D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171b64;
/* rgb */ color: rgb(23, 27, 100);
/* oklch */ color: oklch(27.7% 0.125 272.4);
Tailwind
colors: {
  custom: {
    50: '#625791',
    500: '#171b64',
    950: '#000000',
  },
}
SCSS
$custom: #171b64;
$custom-light: #625791;
$custom-dark: #000000;
JSON
{
  "hex": "#171b64",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 100
  },
  "hsl": {
    "h": 236.883,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.27678,
    "c": 0.12544,
    "h": 272.4
  },
  "luminance": 0.01886
}

Semantic roles & 50–950 ramp

primary
#171B64
secondary
#9A963C
accent
#DD42E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171B64

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

Preview Lab → · Contrast checker → · Palette generator →

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