#17315E#17315E

#17315E is a dark, moderate blue. Relative luminance 0.032; OKLCH L 31.9% C 0.086 H 260.6°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#17315E
RGBrgb(23, 49, 94)
HSLhsl(218, 61%, 23%)
HSVhsv(218, 76%, 37%)
CMYKcmyk(75.5%, 47.9%, 0%, 63.1%)
CIE-LABlab(20.78, 7.37, -29.80)
CIE-LCHlch(20.78, 30.69, 283.90°)
OKLaboklab(31.94% -0.0142 -0.0853)
OKLCHoklch(31.94% 0.086 260.6)
XYZxyz(3.4713, 3.1866, 11.0196)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17315E #5E4417
analogous
#17545E #17315E #20175E
triadic
#17315E #5E1731 #315E17
tetradic
#17315E #5E1754 #5E4417 #175E20
square
#17315E #5E1754 #5E4417 #175E20
split-complementary
#17315E #5E2017 #545E17
monochromatic
#060D19 #0B172D #17315E #234B8F #2F64C0

Accessibility & contrast

On white

12.83
#17315E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#17315E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17315E
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17315E#FFFFFF#000000##FFFFFF
##17315E1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3560
Deuteranopia (green-blind)
#0D2F5D
Tritanopia (blue-blind)
#003B42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #17315e;
/* rgb */ color: rgb(23, 49, 94);
/* oklch */ color: oklch(31.9% 0.086 260.6);
Tailwind
colors: {
  custom: {
    50: '#5e688c',
    500: '#17315e',
    950: '#000000',
  },
}
SCSS
$custom: #17315e;
$custom-light: #5e688c;
$custom-dark: #000000;
JSON
{
  "hex": "#17315e",
  "rgb": {
    "r": 23,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 218.028,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.31936,
    "c": 0.08643,
    "h": 260.6
  },
  "luminance": 0.03187
}

Semantic roles & 50–950 ramp

primary
#17315E
secondary
#95743C
accent
#A944E4
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #17315E

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

Preview Lab → · Contrast checker → · Palette generator →

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