#171A66#171A66

#171A66 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.7% C 0.129 H 272.5°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#171A66
RGBrgb(23, 26, 102)
HSLhsl(238, 63%, 25%)
HSVhsv(238, 77%, 40%)
CMYKcmyk(77.5%, 74.5%, 0%, 60%)
CIE-LABlab(14.84, 27.15, -44.71)
CIE-LCHlch(14.84, 52.31, 301.27°)
OKLaboklab(27.72% 0.0056 -0.1293)
OKLCHoklch(27.72% 0.129 272.5)
XYZxyz(3.1202, 1.8799, 12.7662)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A66 #666317
analogous
#174166 #171A66 #3C1766
triadic
#171A66 #66171A #1A6617
tetradic
#171A66 #661741 #666317 #17663C
square
#171A66 #661741 #666317 #17663C
split-complementary
#171A66 #663C17 #416617
monochromatic
#060619 #0C0D34 #171A66 #222798 #2E33CA

Accessibility & contrast

On white

15.26
#171A66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#171A66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A66
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A66#FFFFFF#000000##FFFFFF
##171A661.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002265
Tritanopia (blue-blind)
#002F3E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171a66;
/* rgb */ color: rgb(23, 26, 102);
/* oklch */ color: oklch(27.7% 0.129 272.5);
Tailwind
colors: {
  custom: {
    50: '#625793',
    500: '#171a66',
    950: '#000000',
  },
}
SCSS
$custom: #171a66;
$custom-light: #625793;
$custom-dark: #000000;
JSON
{
  "hex": "#171a66",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 102
  },
  "hsl": {
    "h": 237.722,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.2772,
    "c": 0.12946,
    "h": 272.5
  },
  "luminance": 0.0188
}

Semantic roles & 50–950 ramp

primary
#171A66
secondary
#9C993C
accent
#E042E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171A66

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

Preview Lab → · Contrast checker → · Palette generator →

#171A66 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva