#170F68#170F68

#170F68 is a dark, vivid blue. Relative luminance 0.015; OKLCH L 26.3% C 0.143 H 274.2°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#170F68
RGBrgb(23, 15, 104)
HSLhsl(245, 75%, 23%)
HSVhsv(245, 86%, 41%)
CMYKcmyk(77.9%, 85.6%, 0%, 59.2%)
CIE-LABlab(12.75, 34.46, -49.48)
CIE-LCHlch(12.75, 60.30, 304.86°)
OKLaboklab(26.31% 0.0106 -0.1431)
OKLCHoklch(26.31% 0.143 274.2)
XYZxyz(3.0220, 1.5230, 13.2287)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F68 #60680F
analogous
#0F3368 #170F68 #430F68
triadic
#170F68 #68170F #0F6817
tetradic
#170F68 #680F33 #60680F #0F6843
square
#170F68 #680F33 #60680F #0F6843
split-complementary
#170F68 #68430F #33680F
monochromatic
#06041B #0B0733 #170F68 #23179D #2F1ED3

Accessibility & contrast

On white

16.10
#170F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#170F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F68
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F68#FFFFFF#000000##FFFFFF
##170F681.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00256A
Deuteranopia (green-blind)
#001D66
Tritanopia (blue-blind)
#002B3C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #170f68;
/* rgb */ color: rgb(23, 15, 104);
/* oklch */ color: oklch(26.3% 0.143 274.2);
Tailwind
colors: {
  custom: {
    50: '#645094',
    500: '#170f68',
    950: '#000000',
  },
}
SCSS
$custom: #170f68;
$custom-light: #645094;
$custom-dark: #000000;
JSON
{
  "hex": "#170f68",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 104
  },
  "hsl": {
    "h": 245.393,
    "s": 74.79,
    "l": 23.333
  },
  "oklch": {
    "l": 0.26312,
    "c": 0.14349,
    "h": 274.2
  },
  "luminance": 0.01523
}

Semantic roles & 50–950 ramp

primary
#170F68
secondary
#97A132
accent
#F136E1
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#06020D
muted
#7A787E

Preview Lab

Preview with #170F68

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

Preview Lab → · Contrast checker → · Palette generator →

#170F68 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva