#170F76#170F76

#170F76 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 28.1% C 0.161 H 272.3°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#170F76
RGBrgb(23, 15, 118)
HSLhsl(245, 77%, 26%)
HSVhsv(245, 87%, 46%)
CMYKcmyk(80.5%, 87.3%, 0%, 53.7%)
CIE-LABlab(14.58, 39.07, -55.58)
CIE-LCHlch(14.58, 67.94, 305.10°)
OKLaboklab(28.1% 0.0066 -0.1608)
OKLCHoklch(28.1% 0.161 272.3)
XYZxyz(3.7931, 1.8314, 17.2896)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F76 #6E760F
analogous
#0F3A76 #170F76 #4A0F76
triadic
#170F76 #76170F #0F7617
tetradic
#170F76 #760F3A #6E760F #0F764A
square
#170F76 #760F3A #6E760F #0F764A
split-complementary
#170F76 #764A0F #3A760F
monochromatic
#05031B #0C0840 #170F76 #2216AC #2C1DE2

Accessibility & contrast

On white

15.37
#170F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#170F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F76
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F76#FFFFFF#000000##FFFFFF
##170F761.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A79
Deuteranopia (green-blind)
#002074
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #170f76;
/* rgb */ color: rgb(23, 15, 118);
/* oklch */ color: oklch(28.1% 0.161 272.3);
Tailwind
colors: {
  custom: {
    50: '#68519f',
    500: '#170f76',
    950: '#000000',
  },
}
SCSS
$custom: #170f76;
$custom-light: #68519f;
$custom-dark: #000000;
JSON
{
  "hex": "#170f76",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 118
  },
  "hsl": {
    "h": 244.66,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28096,
    "c": 0.16092,
    "h": 272.3
  },
  "luminance": 0.01832
}

Semantic roles & 50–950 ramp

primary
#170F76
secondary
#A4AD33
accent
#F434E5
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020F
muted
#7A787E

Preview Lab

Preview with #170F76

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

Preview Lab → · Contrast checker → · Palette generator →

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