#17315B#17315B

#17315B is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.7% C 0.082 H 259.6°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#17315B
RGBrgb(23, 49, 91)
HSLhsl(217, 60%, 22%)
HSVhsv(217, 75%, 36%)
CMYKcmyk(74.7%, 46.2%, 0%, 64.3%)
CIE-LABlab(20.57, 6.12, -28.15)
CIE-LCHlch(20.57, 28.80, 282.27°)
OKLaboklab(31.71% -0.0148 -0.0804)
OKLCHoklch(31.71% 0.082 259.6)
XYZxyz(3.3393, 3.1338, 10.3244)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17315B #5B4117
analogous
#17535B #17315B #1F175B
triadic
#17315B #5B1731 #315B17
tetradic
#17315B #5B1753 #5B4117 #175B1F
square
#17315B #5B1753 #5B4117 #175B1F
split-complementary
#17315B #5B1F17 #535B17
monochromatic
#060D18 #0B172A #17315B #234B8C #3066BD

Accessibility & contrast

On white

12.91
#17315B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#17315B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17315B
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17315B#FFFFFF#000000##FFFFFF
##17315B1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D355D
Deuteranopia (green-blind)
#112F5A
Tritanopia (blue-blind)
#003B41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #17315b;
/* rgb */ color: rgb(23, 49, 91);
/* oklch */ color: oklch(31.7% 0.082 259.6);
Tailwind
colors: {
  custom: {
    50: '#5e688a',
    500: '#17315b',
    950: '#000000',
  },
}
SCSS
$custom: #17315b;
$custom-light: #5e688a;
$custom-dark: #000000;
JSON
{
  "hex": "#17315b",
  "rgb": {
    "r": 23,
    "g": 49,
    "b": 91
  },
  "hsl": {
    "h": 217.059,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31713,
    "c": 0.08176,
    "h": 259.6
  },
  "luminance": 0.03134
}

Semantic roles & 50–950 ramp

primary
#17315B
secondary
#92713C
accent
#A645E3
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060B
muted
#797A7C

Preview Lab

Preview with #17315B

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

Preview Lab → · Contrast checker → · Palette generator →

#17315B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva