#171B61#171B61

#171B61 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.4% C 0.121 H 272.6°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#171B61
RGBrgb(23, 27, 97)
HSLhsl(237, 62%, 24%)
HSVhsv(237, 76%, 38%)
CMYKcmyk(76.3%, 72.2%, 0%, 62%)
CIE-LABlab(14.56, 24.55, -41.86)
CIE-LCHlch(14.56, 48.53, 300.38°)
OKLaboklab(27.36% 0.0056 -0.121)
OKLCHoklch(27.36% 0.121 272.6)
XYZxyz(2.9022, 1.8288, 11.5070)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B61 #615D17
analogous
#174061 #171B61 #381761
triadic
#171B61 #61171B #1B6117
tetradic
#171B61 #611740 #615D17 #176138
square
#171B61 #611740 #615D17 #176138
split-complementary
#171B61 #613817 #406117
monochromatic
#060719 #0B0D30 #171B61 #232992 #2E37C4

Accessibility & contrast

On white

15.38
#171B61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#171B61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B61
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B61#FFFFFF#000000##FFFFFF
##171B611.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002160
Tritanopia (blue-blind)
#002E3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171b61;
/* rgb */ color: rgb(23, 27, 97);
/* oklch */ color: oklch(27.4% 0.121 272.6);
Tailwind
colors: {
  custom: {
    50: '#61578f',
    500: '#171b61',
    950: '#000000',
  },
}
SCSS
$custom: #171b61;
$custom-light: #61578f;
$custom-dark: #000000;
JSON
{
  "hex": "#171b61",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 97
  },
  "hsl": {
    "h": 236.757,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27355,
    "c": 0.12116,
    "h": 272.6
  },
  "luminance": 0.01829
}

Semantic roles & 50–950 ramp

primary
#171B61
secondary
#98933C
accent
#DC43E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #171B61

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

Preview Lab → · Contrast checker → · Palette generator →

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