#171A7C#171A7C

#171A7C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.2% C 0.159 H 270.6°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#171A7C
RGBrgb(23, 26, 124)
HSLhsl(238, 69%, 29%)
HSVhsv(238, 81%, 49%)
CMYKcmyk(81.5%, 79%, 0%, 51.4%)
CIE-LABlab(17.35, 35.24, -54.84)
CIE-LCHlch(17.35, 65.19, 302.73°)
OKLaboklab(30.25% 0.0018 -0.1588)
OKLCHoklch(30.25% 0.159 270.6)
XYZxyz(4.3596, 2.3757, 19.2937)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A7C #7C7917
analogous
#174D7C #171A7C #47177C
triadic
#171A7C #7C171A #1A7C17
tetradic
#171A7C #7C174D #7C7917 #177C47
square
#171A7C #7C174D #7C7917 #177C47
split-complementary
#171A7C #7C4717 #4D7C17
monochromatic
#05051A #0D0F48 #171A7C #2125B0 #3439D9

Accessibility & contrast

On white

14.24
#171A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#171A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A7C
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A7C#FFFFFF#000000##FFFFFF
##171A7C1.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171a7c;
/* rgb */ color: rgb(23, 26, 124);
/* oklch */ color: oklch(30.2% 0.159 270.6);
Tailwind
colors: {
  custom: {
    50: '#6858a3',
    500: '#171a7c',
    950: '#000000',
  },
}
SCSS
$custom: #171a7c;
$custom-light: #6858a3;
$custom-dark: #000000;
JSON
{
  "hex": "#171a7c",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 238.218,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30246,
    "c": 0.15883,
    "h": 270.6
  },
  "luminance": 0.02376
}

Semantic roles & 50–950 ramp

primary
#171A7C
secondary
#B1AD3E
accent
#E63CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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