#171A68#171A68

#171A68 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.9% C 0.132 H 272.3°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#171A68
RGBrgb(23, 26, 104)
HSLhsl(238, 64%, 25%)
HSVhsv(238, 78%, 41%)
CMYKcmyk(77.9%, 75%, 0%, 59.2%)
CIE-LABlab(15.06, 27.91, -45.67)
CIE-LCHlch(15.06, 53.52, 301.43°)
OKLaboklab(27.94% 0.0053 -0.1321)
OKLCHoklch(27.94% 0.132 272.3)
XYZxyz(3.2206, 1.9201, 13.2949)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A68 #686517
analogous
#174268 #171A68 #3D1768
triadic
#171A68 #68171A #1A6817
tetradic
#171A68 #681742 #686517 #17683D
square
#171A68 #681742 #686517 #17683D
split-complementary
#171A68 #683D17 #426817
monochromatic
#060619 #0C0D36 #171A68 #22279A #2D33CC

Accessibility & contrast

On white

15.17
#171A68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171A68
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A68#FFFFFF#000000##FFFFFF
##171A681.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002267
Tritanopia (blue-blind)
#00303F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171a68;
/* rgb */ color: rgb(23, 26, 104);
/* oklch */ color: oklch(27.9% 0.132 272.3);
Tailwind
colors: {
  custom: {
    50: '#635794',
    500: '#171a68',
    950: '#000000',
  },
}
SCSS
$custom: #171a68;
$custom-light: #635794;
$custom-dark: #000000;
JSON
{
  "hex": "#171a68",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 104
  },
  "hsl": {
    "h": 237.778,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.27942,
    "c": 0.13224,
    "h": 272.3
  },
  "luminance": 0.0192
}

Semantic roles & 50–950 ramp

primary
#171A68
secondary
#9E9B3D
accent
#E141E7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171A68

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

Preview Lab → · Contrast checker → · Palette generator →

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