#171A77#171A77

#171A77 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.7% C 0.152 H 271.0°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#171A77
RGBrgb(23, 26, 119)
HSLhsl(238, 68%, 28%)
HSVhsv(238, 81%, 47%)
CMYKcmyk(80.7%, 78.2%, 0%, 53.3%)
CIE-LABlab(16.76, 33.45, -52.61)
CIE-LCHlch(16.76, 62.35, 302.45°)
OKLaboklab(29.66% 0.0027 -0.1523)
OKLCHoklch(29.66% 0.152 271)
XYZxyz(4.0514, 2.2524, 17.6704)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A77 #777417
analogous
#174A77 #171A77 #441777
triadic
#171A77 #77171A #1A7717
tetradic
#171A77 #77174A #777417 #177744
square
#171A77 #77174A #777417 #177744
split-complementary
#171A77 #774417 #4A7717
monochromatic
#05061A #0D0F44 #171A77 #2125AA #3136D7

Accessibility & contrast

On white

14.48
#171A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#171A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A77
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A77#FFFFFF#000000##FFFFFF
##171A771.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002575
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171a77;
/* rgb */ color: rgb(23, 26, 119);
/* oklch */ color: oklch(29.7% 0.152 271.0);
Tailwind
colors: {
  custom: {
    50: '#67589f',
    500: '#171a77',
    950: '#000000',
  },
}
SCSS
$custom: #171a77;
$custom-light: #67589f;
$custom-dark: #000000;
JSON
{
  "hex": "#171a77",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 238.125,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29658,
    "c": 0.15236,
    "h": 271
  },
  "luminance": 0.02253
}

Semantic roles & 50–950 ramp

primary
#171A77
secondary
#ACA93E
accent
#E53DEA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #171A77

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

Preview Lab → · Contrast checker → · Palette generator →

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