#171A74#171A74

#171A74 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.148 H 271.3°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#171A74
RGBrgb(23, 26, 116)
HSLhsl(238, 67%, 27%)
HSVhsv(238, 80%, 45%)
CMYKcmyk(80.2%, 77.6%, 0%, 54.5%)
CIE-LABlab(16.41, 32.37, -51.25)
CIE-LCHlch(16.41, 60.62, 302.27°)
OKLaboklab(29.31% 0.0033 -0.1484)
OKLCHoklch(29.31% 0.148 271.3)
XYZxyz(3.8741, 2.1815, 16.7365)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A74 #747117
analogous
#174874 #171A74 #431774
triadic
#171A74 #74171A #1A7417
tetradic
#171A74 #741748 #747117 #177443
square
#171A74 #741748 #747117 #177443
split-complementary
#171A74 #744317 #487417
monochromatic
#05061A #0D0F41 #171A74 #2125A7 #3035D6

Accessibility & contrast

On white

14.62
#171A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#171A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A74
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A74#FFFFFF#000000##FFFFFF
##171A741.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002472
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171a74;
/* rgb */ color: rgb(23, 26, 116);
/* oklch */ color: oklch(29.3% 0.148 271.3);
Tailwind
colors: {
  custom: {
    50: '#66589d',
    500: '#171a74',
    950: '#000000',
  },
}
SCSS
$custom: #171a74;
$custom-light: #66589d;
$custom-dark: #000000;
JSON
{
  "hex": "#171a74",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 238.065,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.29309,
    "c": 0.14843,
    "h": 271.3
  },
  "luminance": 0.02182
}

Semantic roles & 50–950 ramp

primary
#171A74
secondary
#A9A63D
accent
#E43EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171A74

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

Preview Lab → · Contrast checker → · Palette generator →

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