#171B49#171B49

#171B49 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 25.0% C 0.085 H 274.7°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#171B49
RGBrgb(23, 27, 73)
HSLhsl(235, 52%, 19%)
HSVhsv(235, 68%, 29%)
CMYKcmyk(68.5%, 63%, 0%, 71.4%)
CIE-LABlab(12.27, 14.98, -29.34)
CIE-LCHlch(12.27, 32.95, 297.05°)
OKLaboklab(24.96% 0.007 -0.0843)
OKLCHoklch(24.96% 0.085 274.7)
XYZxyz(1.9475, 1.4469, 6.4787)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B49 #494517
analogous
#173449 #171B49 #2C1749
triadic
#171B49 #49171B #1B4917
tetradic
#171B49 #491734 #494517 #17492C
square
#171B49 #491734 #494517 #17492C
split-complementary
#171B49 #492C17 #344917
monochromatic
#070917 #080A1A #171B49 #262C78 #343DA6

Accessibility & contrast

On white

16.29
#171B49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#171B49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B49
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B49#FFFFFF#000000##FFFFFF
##171B491.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224B
Deuteranopia (green-blind)
#001E48
Tritanopia (blue-blind)
#00262E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #171b49;
/* rgb */ color: rgb(23, 27, 73);
/* oklch */ color: oklch(25.0% 0.085 274.7);
Tailwind
colors: {
  custom: {
    50: '#5a577c',
    500: '#171b49',
    950: '#000000',
  },
}
SCSS
$custom: #171b49;
$custom-light: #5a577c;
$custom-dark: #000000;
JSON
{
  "hex": "#171b49",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 73
  },
  "hsl": {
    "h": 235.2,
    "s": 52.083,
    "l": 18.824
  },
  "oklch": {
    "l": 0.24958,
    "c": 0.08459,
    "h": 274.7
  },
  "luminance": 0.01447
}

Semantic roles & 50–950 ramp

primary
#171B49
secondary
#807B3C
accent
#D04CDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #171B49

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

Preview Lab → · Contrast checker → · Palette generator →

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