#171B7B#171B7B

#171B7B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.157 H 270.6°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#171B7B
RGBrgb(23, 27, 123)
HSLhsl(238, 68%, 29%)
HSVhsv(238, 81%, 48%)
CMYKcmyk(81.3%, 78%, 0%, 51.8%)
CIE-LABlab(17.44, 34.29, -54.05)
CIE-LCHlch(17.44, 64.01, 302.39°)
OKLaboklab(30.28% 0.0016 -0.1565)
OKLCHoklch(30.28% 0.157 270.6)
XYZxyz(4.3192, 2.3956, 18.9698)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B7B #7B7717
analogous
#174D7B #171B7B #45177B
triadic
#171B7B #7B171B #1B7B17
tetradic
#171B7B #7B174D #7B7717 #177B45
square
#171B7B #7B174D #7B7717 #177B45
split-complementary
#171B7B #7B4517 #4D7B17
monochromatic
#05061A #0D1047 #171B7B #2126AF #333AD9

Accessibility & contrast

On white

14.20
#171B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#171B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B7B
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B7B#FFFFFF#000000##FFFFFF
##171B7B1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171b7b;
/* rgb */ color: rgb(23, 27, 123);
/* oklch */ color: oklch(30.3% 0.157 270.6);
Tailwind
colors: {
  custom: {
    50: '#6859a2',
    500: '#171b7b',
    950: '#000000',
  },
}
SCSS
$custom: #171b7b;
$custom-light: #6859a2;
$custom-dark: #000000;
JSON
{
  "hex": "#171b7b",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 237.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30278,
    "c": 0.15654,
    "h": 270.6
  },
  "luminance": 0.02396
}

Semantic roles & 50–950 ramp

primary
#171B7B
secondary
#B0AB3E
accent
#E43CEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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