#17317F#17317F

#17317F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.7% C 0.136 H 265.5°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#17317F
RGBrgb(23, 49, 127)
HSLhsl(225, 69%, 29%)
HSVhsv(225, 82%, 50%)
CMYKcmyk(81.9%, 61.4%, 0%, 50.2%)
CIE-LABlab(23.37, 21.08, -46.84)
CIE-LCHlch(23.37, 51.36, 294.23°)
OKLaboklab(34.73% -0.0106 -0.1354)
OKLCHoklch(34.73% 0.136 265.5)
XYZxyz(5.2811, 3.9105, 20.5510)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17317F #7F6517
analogous
#17657F #17317F #31177F
triadic
#17317F #7F1731 #317F17
tetradic
#17317F #7F1765 #7F6517 #177F31
square
#17317F #7F1765 #7F6517 #177F31
split-complementary
#17317F #7F3117 #657F17
monochromatic
#050A1A #0E1D4B #17317F #2045B3 #365FDB

Accessibility & contrast

On white

11.78
#17317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#17317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17317F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17317F#FFFFFF#000000##FFFFFF
##17317F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #17317f;
/* rgb */ color: rgb(23, 49, 127);
/* oklch */ color: oklch(34.7% 0.136 265.5);
Tailwind
colors: {
  custom: {
    50: '#6768a5',
    500: '#17317f',
    950: '#000000',
  },
}
SCSS
$custom: #17317f;
$custom-light: #6768a5;
$custom-dark: #000000;
JSON
{
  "hex": "#17317f",
  "rgb": {
    "r": 23,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 225,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34728,
    "c": 0.13579,
    "h": 265.5
  },
  "luminance": 0.03911
}

Semantic roles & 50–950 ramp

primary
#17317F
secondary
#B4963E
accent
#C03CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #17317F

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

Preview Lab → · Contrast checker → · Palette generator →

#17317F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva