#170F66#170F66

#170F66 is a dark, vivid blue. Relative luminance 0.015; OKLCH L 26.1% C 0.141 H 274.5°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#170F66
RGBrgb(23, 15, 102)
HSLhsl(246, 74%, 23%)
HSVhsv(246, 85%, 40%)
CMYKcmyk(77.5%, 85.3%, 0%, 60%)
CIE-LABlab(12.50, 33.79, -48.58)
CIE-LCHlch(12.50, 59.18, 304.82°)
OKLaboklab(26.06% 0.0111 -0.1405)
OKLCHoklch(26.06% 0.141 274.5)
XYZxyz(2.9217, 1.4828, 12.7000)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F66 #5E660F
analogous
#0F3266 #170F66 #420F66
triadic
#170F66 #66170F #0F6617
tetradic
#170F66 #660F32 #5E660F #0F6642
square
#170F66 #660F32 #5E660F #0F6642
split-complementary
#170F66 #66420F #32660F
monochromatic
#06041B #0B0731 #170F66 #23179B #2F1FD1

Accessibility & contrast

On white

16.20
#170F66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170F66
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F66#FFFFFF#000000##FFFFFF
##170F661.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002468
Deuteranopia (green-blind)
#001C65
Tritanopia (blue-blind)
#002A3B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #170f66;
/* rgb */ color: rgb(23, 15, 102);
/* oklch */ color: oklch(26.1% 0.141 274.5);
Tailwind
colors: {
  custom: {
    50: '#635093',
    500: '#170f66',
    950: '#000000',
  },
}
SCSS
$custom: #170f66;
$custom-light: #635093;
$custom-dark: #000000;
JSON
{
  "hex": "#170f66",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 102
  },
  "hsl": {
    "h": 245.517,
    "s": 74.359,
    "l": 22.941
  },
  "oklch": {
    "l": 0.26061,
    "c": 0.14094,
    "h": 274.5
  },
  "luminance": 0.01483
}

Semantic roles & 50–950 ramp

primary
#170F66
secondary
#959F32
accent
#F137E0
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#06020D
muted
#7A787E

Preview Lab

Preview with #170F66

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

Preview Lab → · Contrast checker → · Palette generator →

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