#172154#172154

#172154 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.3% C 0.093 H 270.6°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#172154
RGBrgb(23, 33, 84)
HSLhsl(230, 57%, 21%)
HSVhsv(230, 73%, 33%)
CMYKcmyk(72.6%, 60.7%, 0%, 67.1%)
CIE-LABlab(15.01, 14.99, -32.43)
CIE-LCHlch(15.01, 35.72, 294.81°)
OKLaboklab(27.3% 0.001 -0.0933)
OKLCHoklch(27.3% 0.093 270.6)
XYZxyz(2.4969, 1.9097, 8.6228)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172154 #544A17
analogous
#173F54 #172154 #2B1754
triadic
#172154 #541721 #215417
tetradic
#172154 #54173F #544A17 #17542B
square
#172154 #54173F #544A17 #17542B
split-complementary
#172154 #542B17 #3F5417
monochromatic
#070918 #0A0E24 #172154 #243484 #3147B4

Accessibility & contrast

On white

15.20
#172154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#172154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172154
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172154#FFFFFF#000000##FFFFFF
##1721541.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002956
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#002D36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #172154;
/* rgb */ color: rgb(23, 33, 84);
/* oklch */ color: oklch(27.3% 0.093 270.6);
Tailwind
colors: {
  custom: {
    50: '#5d5b85',
    500: '#172154',
    950: '#000000',
  },
}
SCSS
$custom: #172154;
$custom-light: #5d5b85;
$custom-dark: #000000;
JSON
{
  "hex": "#172154",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 230.164,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27303,
    "c": 0.0933,
    "h": 270.6
  },
  "luminance": 0.0191
}

Semantic roles & 50–950 ramp

primary
#172154
secondary
#8B7E3C
accent
#C748E0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #172154

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

Preview Lab → · Contrast checker → · Palette generator →

#172154 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva