#171B7C#171B7C

#171B7C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.158 H 270.5°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#171B7C
RGBrgb(23, 27, 124)
HSLhsl(238, 69%, 29%)
HSVhsv(238, 81%, 49%)
CMYKcmyk(81.5%, 78.2%, 0%, 51.4%)
CIE-LABlab(17.56, 34.65, -54.49)
CIE-LCHlch(17.56, 64.58, 302.45°)
OKLaboklab(30.4% 0.0014 -0.1578)
OKLCHoklch(30.4% 0.158 270.5)
XYZxyz(4.3821, 2.4208, 19.3012)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B7C #7C7817
analogous
#174E7C #171B7C #46177C
triadic
#171B7C #7C171B #1B7C17
tetradic
#171B7C #7C174E #7C7817 #177C46
square
#171B7C #7C174E #7C7817 #177C46
split-complementary
#171B7C #7C4617 #4E7C17
monochromatic
#05061A #0D1048 #171B7C #2126B0 #343BD9

Accessibility & contrast

On white

14.15
#171B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B7C
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B7C#FFFFFF#000000##FFFFFF
##171B7C1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171b7c;
/* rgb */ color: rgb(23, 27, 124);
/* oklch */ color: oklch(30.4% 0.158 270.5);
Tailwind
colors: {
  custom: {
    50: '#6859a3',
    500: '#171b7c',
    950: '#000000',
  },
}
SCSS
$custom: #171b7c;
$custom-light: #6859a3;
$custom-dark: #000000;
JSON
{
  "hex": "#171b7c",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 237.624,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30395,
    "c": 0.15783,
    "h": 270.5
  },
  "luminance": 0.02421
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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