#171B7D#171B7D

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

Color values

HEX#171B7D
RGBrgb(23, 27, 125)
HSLhsl(238, 69%, 29%)
HSVhsv(238, 82%, 49%)
CMYKcmyk(81.6%, 78.4%, 0%, 51%)
CIE-LABlab(17.67, 35.01, -54.94)
CIE-LCHlch(17.67, 65.14, 302.51°)
OKLaboklab(30.51% 0.0012 -0.1591)
OKLCHoklch(30.51% 0.159 270.4)
XYZxyz(4.4457, 2.4462, 19.6359)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B7D #7D7917
analogous
#174E7D #171B7D #46177D
triadic
#171B7D #7D171B #1B7D17
tetradic
#171B7D #7D174E #7D7917 #177D46
square
#171B7D #7D174E #7D7917 #177D46
split-complementary
#171B7D #7D4617 #4E7D17
monochromatic
#05061A #0D1049 #171B7D #2126B1 #353BDA

Accessibility & contrast

On white

14.10
#171B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#171B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B7D
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B7D#FFFFFF#000000##FFFFFF
##171B7D1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171b7d;
/* rgb */ color: rgb(23, 27, 125);
/* oklch */ color: oklch(30.5% 0.159 270.4);
Tailwind
colors: {
  custom: {
    50: '#6959a4',
    500: '#171b7d',
    950: '#000000',
  },
}
SCSS
$custom: #171b7d;
$custom-light: #6959a4;
$custom-dark: #000000;
JSON
{
  "hex": "#171b7d",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 237.647,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30512,
    "c": 0.15911,
    "h": 270.4
  },
  "luminance": 0.02447
}

Semantic roles & 50–950 ramp

primary
#171B7D
secondary
#B2AD3E
accent
#E53CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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