#171A6A#171A6A

#171A6A is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.2% C 0.135 H 272.1°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#171A6A
RGBrgb(23, 26, 106)
HSLhsl(238, 64%, 25%)
HSVhsv(238, 78%, 42%)
CMYKcmyk(78.3%, 75.5%, 0%, 58.4%)
CIE-LABlab(15.28, 28.66, -46.62)
CIE-LCHlch(15.28, 54.72, 301.59°)
OKLaboklab(28.17% 0.005 -0.1349)
OKLCHoklch(28.17% 0.135 272.1)
XYZxyz(3.3234, 1.9612, 13.8363)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A6A #6A6717
analogous
#17446A #171A6A #3D176A
triadic
#171A6A #6A171A #1A6A17
tetradic
#171A6A #6A1744 #6A6717 #176A3D
square
#171A6A #6A1744 #6A6717 #176A3D
split-complementary
#171A6A #6A3D17 #446A17
monochromatic
#050619 #0C0E38 #171A6A #22269C #2D33CF

Accessibility & contrast

On white

15.08
#171A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#171A6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A6A
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A6A#FFFFFF#000000##FFFFFF
##171A6A1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002269
Tritanopia (blue-blind)
#003140
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171a6a;
/* rgb */ color: rgb(23, 26, 106);
/* oklch */ color: oklch(28.2% 0.135 272.1);
Tailwind
colors: {
  custom: {
    50: '#635796',
    500: '#171a6a',
    950: '#000000',
  },
}
SCSS
$custom: #171a6a;
$custom-light: #635796;
$custom-dark: #000000;
JSON
{
  "hex": "#171a6a",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 106
  },
  "hsl": {
    "h": 237.831,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28166,
    "c": 0.13498,
    "h": 272.1
  },
  "luminance": 0.01962
}

Semantic roles & 50–950 ramp

primary
#171A6A
secondary
#A09D3D
accent
#E140E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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