#171B70#171B70

#171B70 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.142 H 271.4°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#171B70
RGBrgb(23, 27, 112)
HSLhsl(237, 66%, 26%)
HSVhsv(237, 79%, 44%)
CMYKcmyk(79.5%, 75.9%, 0%, 56.1%)
CIE-LABlab(16.18, 30.26, -49.04)
CIE-LCHlch(16.18, 57.63, 301.68°)
OKLaboklab(29.01% 0.0035 -0.142)
OKLCHoklch(29.01% 0.142 271.4)
XYZxyz(3.6689, 2.1355, 15.5449)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B70 #706C17
analogous
#174870 #171B70 #401770
triadic
#171B70 #70171B #1B7017
tetradic
#171B70 #701748 #706C17 #177040
square
#171B70 #701748 #706C17 #177040
split-complementary
#171B70 #704017 #487017
monochromatic
#050619 #0D0F3D #171B70 #2127A3 #2D35D4

Accessibility & contrast

On white

14.71
#171B70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#171B70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B70
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B70#FFFFFF#000000##FFFFFF
##171B701.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00246E
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171b70;
/* rgb */ color: rgb(23, 27, 112);
/* oklch */ color: oklch(29.0% 0.142 271.4);
Tailwind
colors: {
  custom: {
    50: '#65589a',
    500: '#171b70',
    950: '#000000',
  },
}
SCSS
$custom: #171b70;
$custom-light: #65589a;
$custom-dark: #000000;
JSON
{
  "hex": "#171b70",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 112
  },
  "hsl": {
    "h": 237.303,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.2901,
    "c": 0.14201,
    "h": 271.4
  },
  "luminance": 0.02136
}

Semantic roles & 50–950 ramp

primary
#171B70
secondary
#A6A13D
accent
#E13FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171B70

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

Preview Lab → · Contrast checker → · Palette generator →

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