#171E7B#171E7B

#171E7B is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.153 H 270.1°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#171E7B
RGBrgb(23, 30, 123)
HSLhsl(236, 68%, 29%)
HSVhsv(236, 81%, 48%)
CMYKcmyk(81.3%, 75.6%, 0%, 51.8%)
CIE-LABlab(18.10, 32.44, -52.96)
CIE-LCHlch(18.10, 62.10, 301.49°)
OKLaboklab(30.75% 0.0003 -0.1534)
OKLCHoklch(30.75% 0.153 270.1)
XYZxyz(4.3916, 2.5403, 18.9939)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E7B #7B7417
analogous
#17507B #171E7B #42177B
triadic
#171E7B #7B171E #1E7B17
tetradic
#171E7B #7B1750 #7B7417 #177B42
square
#171E7B #7B1750 #7B7417 #177B42
split-complementary
#171E7B #7B4217 #507B17
monochromatic
#05061A #0D1147 #171E7B #212BAF #333FD9

Accessibility & contrast

On white

13.92
#171E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#171E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E7B
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E7B#FFFFFF#000000##FFFFFF
##171E7B1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171e7b;
/* rgb */ color: rgb(23, 30, 123);
/* oklch */ color: oklch(30.7% 0.153 270.1);
Tailwind
colors: {
  custom: {
    50: '#685aa2',
    500: '#171e7b',
    950: '#000000',
  },
}
SCSS
$custom: #171e7b;
$custom-light: #685aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#171e7b",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 235.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30747,
    "c": 0.15338,
    "h": 270.1
  },
  "luminance": 0.02541
}

Semantic roles & 50–950 ramp

primary
#171E7B
secondary
#B0A83E
accent
#DF3CEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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