#171B45#171B45

#171B45 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.6% C 0.078 H 275.0°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#171B45
RGBrgb(23, 27, 69)
HSLhsl(235, 50%, 18%)
HSVhsv(235, 67%, 27%)
CMYKcmyk(66.7%, 60.9%, 0%, 72.9%)
CIE-LABlab(11.93, 13.36, -27.11)
CIE-LCHlch(11.93, 30.23, 296.24°)
OKLaboklab(24.6% 0.0068 -0.0777)
OKLCHoklch(24.6% 0.078 275)
XYZxyz(1.8191, 1.3956, 5.8026)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B45 #454117
analogous
#173245 #171B45 #2A1745
triadic
#171B45 #45171B #1B4517
tetradic
#171B45 #451732 #454117 #17452A
square
#171B45 #451732 #454117 #17452A
split-complementary
#171B45 #452A17 #324517
monochromatic
#080917 #080917 #171B45 #262D73 #363FA1

Accessibility & contrast

On white

16.42
#171B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#171B45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B45
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B45#FFFFFF#000000##FFFFFF
##171B451.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022146
Deuteranopia (green-blind)
#001D44
Tritanopia (blue-blind)
#00252C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #171b45;
/* rgb */ color: rgb(23, 27, 69);
/* oklch */ color: oklch(24.6% 0.078 275.0);
Tailwind
colors: {
  custom: {
    50: '#5a5779',
    500: '#171b45',
    950: '#000000',
  },
}
SCSS
$custom: #171b45;
$custom-light: #5a5779;
$custom-dark: #000000;
JSON
{
  "hex": "#171b45",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 69
  },
  "hsl": {
    "h": 234.783,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.24598,
    "c": 0.07803,
    "h": 275
  },
  "luminance": 0.01396
}

Semantic roles & 50–950 ramp

primary
#171B45
secondary
#7C763C
accent
#CD4EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #171B45

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

Preview Lab → · Contrast checker → · Palette generator →

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