#171A7A#171A7A

#171A7A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.156 H 270.8°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#171A7A
RGBrgb(23, 26, 122)
HSLhsl(238, 68%, 28%)
HSVhsv(238, 81%, 48%)
CMYKcmyk(81.1%, 78.7%, 0%, 52.2%)
CIE-LABlab(17.11, 34.53, -53.95)
CIE-LCHlch(17.11, 64.06, 302.62°)
OKLaboklab(30.01% 0.0021 -0.1562)
OKLCHoklch(30.01% 0.156 270.8)
XYZxyz(4.2344, 2.3256, 18.6343)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A7A #7A7717
analogous
#174B7A #171A7A #45177A
triadic
#171A7A #7A171A #1A7A17
tetradic
#171A7A #7A174B #7A7717 #177A45
square
#171A7A #7A174B #7A7717 #177A45
split-complementary
#171A7A #7A4517 #4B7A17
monochromatic
#05051A #0D0F47 #171A7A #2125AD #3338D9

Accessibility & contrast

On white

14.33
#171A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#171A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A7A
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A7A#FFFFFF#000000##FFFFFF
##171A7A1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002578
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171a7a;
/* rgb */ color: rgb(23, 26, 122);
/* oklch */ color: oklch(30.0% 0.156 270.8);
Tailwind
colors: {
  custom: {
    50: '#6858a2',
    500: '#171a7a',
    950: '#000000',
  },
}
SCSS
$custom: #171a7a;
$custom-light: #6858a2;
$custom-dark: #000000;
JSON
{
  "hex": "#171a7a",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 238.182,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3001,
    "c": 0.15625,
    "h": 270.8
  },
  "luminance": 0.02326
}

Semantic roles & 50–950 ramp

primary
#171A7A
secondary
#AFAC3E
accent
#E63DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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