#171C67#171C67

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

Color values

HEX#171C67
RGBrgb(23, 28, 103)
HSLhsl(236, 63%, 25%)
HSVhsv(236, 78%, 40%)
CMYKcmyk(77.7%, 72.8%, 0%, 59.6%)
CIE-LABlab(15.44, 26.19, -44.38)
CIE-LCHlch(15.44, 51.53, 300.54°)
OKLaboklab(28.18% 0.0042 -0.1284)
OKLCHoklch(28.18% 0.128 271.9)
XYZxyz(3.2160, 1.9916, 13.0443)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C67 #676217
analogous
#174467 #171C67 #3A1767
triadic
#171C67 #67171C #1C6717
tetradic
#171C67 #671744 #676217 #17673A
square
#171C67 #671744 #676217 #17673A
split-complementary
#171C67 #673A17 #446717
monochromatic
#060719 #0C0E35 #171C67 #222A99 #2D37CB

Accessibility & contrast

On white

15.02
#171C67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#171C67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C67
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C67#FFFFFF#000000##FFFFFF
##171C671.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002366
Tritanopia (blue-blind)
#00313F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171c67;
/* rgb */ color: rgb(23, 28, 103);
/* oklch */ color: oklch(28.2% 0.128 271.9);
Tailwind
colors: {
  custom: {
    50: '#625893',
    500: '#171c67',
    950: '#000000',
  },
}
SCSS
$custom: #171c67;
$custom-light: #625893;
$custom-dark: #000000;
JSON
{
  "hex": "#171c67",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 103
  },
  "hsl": {
    "h": 236.25,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28184,
    "c": 0.12845,
    "h": 271.9
  },
  "luminance": 0.01992
}

Semantic roles & 50–950 ramp

primary
#171C67
secondary
#9D973D
accent
#DC41E7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171C67

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

Preview Lab → · Contrast checker → · Palette generator →

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