#171F67#171F67

#171F67 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.7% C 0.125 H 271.0°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#171F67
RGBrgb(23, 31, 103)
HSLhsl(234, 63%, 25%)
HSVhsv(234, 78%, 40%)
CMYKcmyk(77.7%, 69.9%, 0%, 59.6%)
CIE-LABlab(16.21, 24.12, -43.12)
CIE-LCHlch(16.21, 49.41, 299.22°)
OKLaboklab(28.74% 0.0022 -0.1247)
OKLCHoklch(28.74% 0.125 271)
XYZxyz(3.2907, 2.1411, 13.0692)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F67 #675F17
analogous
#174767 #171F67 #371767
triadic
#171F67 #67171F #1F6717
tetradic
#171F67 #671747 #675F17 #176737
square
#171F67 #671747 #675F17 #176737
split-complementary
#171F67 #673717 #476717
monochromatic
#060819 #0C1035 #171F67 #222E99 #2D3DCB

Accessibility & contrast

On white

14.70
#171F67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#171F67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F67
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F67#FFFFFF#000000##FFFFFF
##171F671.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002466
Tritanopia (blue-blind)
#003240
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171f67;
/* rgb */ color: rgb(23, 31, 103);
/* oklch */ color: oklch(28.7% 0.125 271.0);
Tailwind
colors: {
  custom: {
    50: '#625a93',
    500: '#171f67',
    950: '#000000',
  },
}
SCSS
$custom: #171f67;
$custom-light: #625a93;
$custom-dark: #000000;
JSON
{
  "hex": "#171f67",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 103
  },
  "hsl": {
    "h": 234,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28741,
    "c": 0.12471,
    "h": 271
  },
  "luminance": 0.02141
}

Semantic roles & 50–950 ramp

primary
#171F67
secondary
#9D943D
accent
#D641E7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #171F67

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

Preview Lab → · Contrast checker → · Palette generator →

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