#171F79#171F79

#171F79 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.150 H 270.1°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#171F79
RGBrgb(23, 31, 121)
HSLhsl(235, 68%, 28%)
HSVhsv(235, 81%, 47%)
CMYKcmyk(81%, 74.4%, 0%, 52.5%)
CIE-LABlab(18.11, 31.05, -51.67)
CIE-LCHlch(18.11, 60.28, 301.01°)
OKLaboklab(30.69% 0.0002 -0.1496)
OKLCHoklch(30.69% 0.15 270.1)
XYZxyz(4.2933, 2.5421, 18.3499)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F79 #797117
analogous
#175079 #171F79 #401779
triadic
#171F79 #79171F #1F7917
tetradic
#171F79 #791750 #797117 #177940
square
#171F79 #791750 #797117 #177940
split-complementary
#171F79 #794017 #507917
monochromatic
#05071A #0D1246 #171F79 #212CAC #3240D8

Accessibility & contrast

On white

13.92
#171F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#171F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F79
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F79#FFFFFF#000000##FFFFFF
##171F791.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002777
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171f79;
/* rgb */ color: rgb(23, 31, 121);
/* oklch */ color: oklch(30.7% 0.150 270.1);
Tailwind
colors: {
  custom: {
    50: '#675ba1',
    500: '#171f79',
    950: '#000000',
  },
}
SCSS
$custom: #171f79;
$custom-light: #675ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#171f79",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 235.102,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30687,
    "c": 0.14962,
    "h": 270.1
  },
  "luminance": 0.02543
}

Semantic roles & 50–950 ramp

primary
#171F79
secondary
#AEA53E
accent
#DD3DEB
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171F79

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

Preview Lab → · Contrast checker → · Palette generator →

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