#171B75#171B75

#171B75 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.149 H 271.0°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#171B75
RGBrgb(23, 27, 117)
HSLhsl(237, 67%, 27%)
HSVhsv(237, 80%, 46%)
CMYKcmyk(80.3%, 76.9%, 0%, 54.1%)
CIE-LABlab(16.75, 32.11, -51.34)
CIE-LCHlch(16.75, 60.56, 302.02°)
OKLaboklab(29.58% 0.0026 -0.1487)
OKLCHoklch(29.58% 0.149 271)
XYZxyz(3.9551, 2.2499, 17.0520)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B75 #757117
analogous
#174A75 #171B75 #421775
triadic
#171B75 #75171B #1B7517
tetradic
#171B75 #75174A #757117 #177542
square
#171B75 #75174A #757117 #177542
split-complementary
#171B75 #754217 #4A7517
monochromatic
#05061A #0D0F42 #171B75 #2127A8 #3037D6

Accessibility & contrast

On white

14.48
#171B75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#171B75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B75
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B75#FFFFFF#000000##FFFFFF
##171B751.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002573
Tritanopia (blue-blind)
#003546
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171b75;
/* rgb */ color: rgb(23, 27, 117);
/* oklch */ color: oklch(29.6% 0.149 271.0);
Tailwind
colors: {
  custom: {
    50: '#66589e',
    500: '#171b75',
    950: '#000000',
  },
}
SCSS
$custom: #171b75;
$custom-light: #66589e;
$custom-dark: #000000;
JSON
{
  "hex": "#171b75",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 117
  },
  "hsl": {
    "h": 237.447,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29581,
    "c": 0.14868,
    "h": 271
  },
  "luminance": 0.0225
}

Semantic roles & 50–950 ramp

primary
#171B75
secondary
#AAA63D
accent
#E33EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171B75

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

Preview Lab → · Contrast checker → · Palette generator →

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