#171A70#171A70

#171A70 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.143 H 271.6°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#171A70
RGBrgb(23, 26, 112)
HSLhsl(238, 66%, 26%)
HSVhsv(238, 79%, 44%)
CMYKcmyk(79.5%, 76.8%, 0%, 56.1%)
CIE-LABlab(15.95, 30.90, -49.42)
CIE-LCHlch(15.95, 58.28, 302.02°)
OKLaboklab(28.85% 0.004 -0.1431)
OKLCHoklch(28.85% 0.143 271.6)
XYZxyz(3.6464, 2.0904, 15.5374)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A70 #706D17
analogous
#174770 #171A70 #411770
triadic
#171A70 #70171A #1A7017
tetradic
#171A70 #701747 #706D17 #177041
square
#171A70 #701747 #706D17 #177041
split-complementary
#171A70 #704117 #477017
monochromatic
#050619 #0D0E3D #171A70 #2126A3 #2D33D4

Accessibility & contrast

On white

14.81
#171A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#171A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A70
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A70#FFFFFF#000000##FFFFFF
##171A701.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171a70;
/* rgb */ color: rgb(23, 26, 112);
/* oklch */ color: oklch(28.8% 0.143 271.6);
Tailwind
colors: {
  custom: {
    50: '#65579a',
    500: '#171a70',
    950: '#000000',
  },
}
SCSS
$custom: #171a70;
$custom-light: #65579a;
$custom-dark: #000000;
JSON
{
  "hex": "#171a70",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 112
  },
  "hsl": {
    "h": 237.978,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28847,
    "c": 0.14311,
    "h": 271.6
  },
  "luminance": 0.02091
}

Semantic roles & 50–950 ramp

primary
#171A70
secondary
#A6A23D
accent
#E33FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171A70

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

Preview Lab → · Contrast checker → · Palette generator →

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