#171A7B#171A7B

#171A7B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.158 H 270.7°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#171A7B
RGBrgb(23, 26, 123)
HSLhsl(238, 68%, 29%)
HSVhsv(238, 81%, 48%)
CMYKcmyk(81.3%, 78.9%, 0%, 51.8%)
CIE-LABlab(17.23, 34.89, -54.40)
CIE-LCHlch(17.23, 64.62, 302.68°)
OKLaboklab(30.13% 0.002 -0.1575)
OKLCHoklch(30.13% 0.158 270.7)
XYZxyz(4.2967, 2.3505, 18.9623)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A7B #7B7817
analogous
#174C7B #171A7B #46177B
triadic
#171A7B #7B171A #1A7B17
tetradic
#171A7B #7B174C #7B7817 #177B46
square
#171A7B #7B174C #7B7817 #177B46
split-complementary
#171A7B #7B4617 #4C7B17
monochromatic
#05051A #0D0F47 #171A7B #2125AF #3338D9

Accessibility & contrast

On white

14.28
#171A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171A7B
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A7B#FFFFFF#000000##FFFFFF
##171A7B1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171a7b;
/* rgb */ color: rgb(23, 26, 123);
/* oklch */ color: oklch(30.1% 0.158 270.7);
Tailwind
colors: {
  custom: {
    50: '#6858a2',
    500: '#171a7b',
    950: '#000000',
  },
}
SCSS
$custom: #171a7b;
$custom-light: #6858a2;
$custom-dark: #000000;
JSON
{
  "hex": "#171a7b",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 238.2,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30128,
    "c": 0.15754,
    "h": 270.7
  },
  "luminance": 0.02351
}

Semantic roles & 50–950 ramp

primary
#171A7B
secondary
#B0AC3E
accent
#E63CEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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