#171A7F#171A7F

#171A7F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.163 H 270.4°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#171A7F
RGBrgb(23, 26, 127)
HSLhsl(238, 69%, 29%)
HSVhsv(238, 82%, 50%)
CMYKcmyk(81.9%, 79.5%, 0%, 50.2%)
CIE-LABlab(17.70, 36.31, -56.16)
CIE-LCHlch(17.70, 66.87, 302.88°)
OKLaboklab(30.6% 0.0012 -0.1626)
OKLCHoklch(30.6% 0.163 270.4)
XYZxyz(4.5522, 2.4527, 20.3081)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A7F #7F7C17
analogous
#174E7F #171A7F #48177F
triadic
#171A7F #7F171A #1A7F17
tetradic
#171A7F #7F174E #7F7C17 #177F48
square
#171A7F #7F174E #7F7C17 #177F48
split-complementary
#171A7F #7F4817 #4E7F17
monochromatic
#05051A #0E0F4B #171A7F #2025B3 #363BDB

Accessibility & contrast

On white

14.09
#171A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171A7F
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A7F#FFFFFF#000000##FFFFFF
##171A7F1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171a7f;
/* rgb */ color: rgb(23, 26, 127);
/* oklch */ color: oklch(30.6% 0.163 270.4);
Tailwind
colors: {
  custom: {
    50: '#6958a5',
    500: '#171a7f',
    950: '#000000',
  },
}
SCSS
$custom: #171a7f;
$custom-light: #6958a5;
$custom-dark: #000000;
JSON
{
  "hex": "#171a7f",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 238.269,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30603,
    "c": 0.16265,
    "h": 270.4
  },
  "luminance": 0.02453
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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