#171A7E#171A7E

#171A7E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.161 H 270.5°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#171A7E
RGBrgb(23, 26, 126)
HSLhsl(238, 69%, 29%)
HSVhsv(238, 82%, 49%)
CMYKcmyk(81.7%, 79.4%, 0%, 50.6%)
CIE-LABlab(17.58, 35.95, -55.72)
CIE-LCHlch(17.58, 66.31, 302.83°)
OKLaboklab(30.48% 0.0014 -0.1614)
OKLCHoklch(30.48% 0.161 270.5)
XYZxyz(4.4874, 2.4268, 19.9665)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A7E #7E7B17
analogous
#174E7E #171A7E #48177E
triadic
#171A7E #7E171A #1A7E17
tetradic
#171A7E #7E174E #7E7B17 #177E48
square
#171A7E #7E174E #7E7B17 #177E48
split-complementary
#171A7E #7E4817 #4E7E17
monochromatic
#05051A #0E0F4A #171A7E #2025B2 #353ADA

Accessibility & contrast

On white

14.14
#171A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#171A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A7E
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A7E#FFFFFF#000000##FFFFFF
##171A7E1.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171a7e;
/* rgb */ color: rgb(23, 26, 126);
/* oklch */ color: oklch(30.5% 0.161 270.5);
Tailwind
colors: {
  custom: {
    50: '#6958a5',
    500: '#171a7e',
    950: '#000000',
  },
}
SCSS
$custom: #171a7e;
$custom-light: #6958a5;
$custom-dark: #000000;
JSON
{
  "hex": "#171a7e",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 238.252,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30484,
    "c": 0.16138,
    "h": 270.5
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

primary
#171A7E
secondary
#B3AF3E
accent
#E73CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #171A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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