#171E45#171E45

#171E45 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.3% C 0.073 H 272.5°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#171E45
RGBrgb(23, 30, 69)
HSLhsl(231, 50%, 18%)
HSVhsv(231, 67%, 27%)
CMYKcmyk(66.7%, 56.5%, 0%, 72.9%)
CIE-LABlab(12.86, 11.09, -25.61)
CIE-LCHlch(12.86, 27.91, 293.42°)
OKLaboklab(25.3% 0.0032 -0.0733)
OKLCHoklch(25.3% 0.073 272.5)
XYZxyz(1.8914, 1.5402, 5.8267)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E45 #453E17
analogous
#173545 #171E45 #271745
triadic
#171E45 #45171E #1E4517
tetradic
#171E45 #451735 #453E17 #174527
square
#171E45 #451735 #453E17 #174527
split-complementary
#171E45 #452717 #354517
monochromatic
#080A17 #080A17 #171E45 #263273 #3646A1

Accessibility & contrast

On white

16.06
#171E45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#171E45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E45
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E45#FFFFFF#000000##FFFFFF
##171E451.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092346
Deuteranopia (green-blind)
#021F44
Tritanopia (blue-blind)
#00272E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171e45;
/* rgb */ color: rgb(23, 30, 69);
/* oklch */ color: oklch(25.3% 0.073 272.5);
Tailwind
colors: {
  custom: {
    50: '#595979',
    500: '#171e45',
    950: '#000000',
  },
}
SCSS
$custom: #171e45;
$custom-light: #595979;
$custom-dark: #000000;
JSON
{
  "hex": "#171e45",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 69
  },
  "hsl": {
    "h": 230.87,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25301,
    "c": 0.07333,
    "h": 272.5
  },
  "luminance": 0.0154
}

Semantic roles & 50–950 ramp

primary
#171E45
secondary
#7C723C
accent
#C44EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #171E45

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

Preview Lab → · Contrast checker → · Palette generator →

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