#171A75#171A75

#171A75 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.150 H 271.2°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#171A75
RGBrgb(23, 26, 117)
HSLhsl(238, 67%, 27%)
HSVhsv(238, 80%, 46%)
CMYKcmyk(80.3%, 77.8%, 0%, 54.1%)
CIE-LABlab(16.53, 32.73, -51.71)
CIE-LCHlch(16.53, 61.19, 302.33°)
OKLaboklab(29.43% 0.0031 -0.1497)
OKLCHoklch(29.43% 0.15 271.2)
XYZxyz(3.9325, 2.2049, 17.0445)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A75 #757217
analogous
#174975 #171A75 #431775
triadic
#171A75 #75171A #1A7517
tetradic
#171A75 #751749 #757217 #177543
square
#171A75 #751749 #757217 #177543
split-complementary
#171A75 #754317 #497517
monochromatic
#05061A #0D0F42 #171A75 #2125A8 #3035D6

Accessibility & contrast

On white

14.57
#171A75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171A75
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A75#FFFFFF#000000##FFFFFF
##171A751.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002473
Tritanopia (blue-blind)
#003546
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171a75;
/* rgb */ color: rgb(23, 26, 117);
/* oklch */ color: oklch(29.4% 0.150 271.2);
Tailwind
colors: {
  custom: {
    50: '#66589e',
    500: '#171a75',
    950: '#000000',
  },
}
SCSS
$custom: #171a75;
$custom-light: #66589e;
$custom-dark: #000000;
JSON
{
  "hex": "#171a75",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 117
  },
  "hsl": {
    "h": 238.085,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29425,
    "c": 0.14974,
    "h": 271.2
  },
  "luminance": 0.02205
}

Semantic roles & 50–950 ramp

primary
#171A75
secondary
#AAA73D
accent
#E53EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171A75

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

Preview Lab → · Contrast checker → · Palette generator →

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