#171F45#171F45

#171F45 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.5% C 0.072 H 271.5°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#171F45
RGBrgb(23, 31, 69)
HSLhsl(230, 50%, 18%)
HSVhsv(230, 67%, 27%)
CMYKcmyk(66.7%, 55.1%, 0%, 72.9%)
CIE-LABlab(13.18, 10.33, -25.09)
CIE-LCHlch(13.18, 27.14, 292.38°)
OKLaboklab(25.54% 0.0019 -0.0717)
OKLCHoklch(25.54% 0.072 271.5)
XYZxyz(1.9172, 1.5917, 5.8353)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F45 #453D17
analogous
#173645 #171F45 #261745
triadic
#171F45 #45171F #1F4517
tetradic
#171F45 #451736 #453D17 #174526
square
#171F45 #451736 #453D17 #174526
split-complementary
#171F45 #452617 #364517
monochromatic
#080A17 #080A17 #171F45 #263473 #3648A1

Accessibility & contrast

On white

15.93
#171F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#171F45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F45
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F45#FFFFFF#000000##FFFFFF
##171F451.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2446
Deuteranopia (green-blind)
#052044
Tritanopia (blue-blind)
#00282E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171f45;
/* rgb */ color: rgb(23, 31, 69);
/* oklch */ color: oklch(25.5% 0.072 271.5);
Tailwind
colors: {
  custom: {
    50: '#595a79',
    500: '#171f45',
    950: '#000000',
  },
}
SCSS
$custom: #171f45;
$custom-light: #595a79;
$custom-dark: #000000;
JSON
{
  "hex": "#171f45",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 69
  },
  "hsl": {
    "h": 229.565,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25541,
    "c": 0.07177,
    "h": 271.5
  },
  "luminance": 0.01592
}

Semantic roles & 50–950 ramp

primary
#171F45
secondary
#7C713C
accent
#C14EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #171F45

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

Preview Lab → · Contrast checker → · Palette generator →

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