#172A4C#172A4C

#172A4C is a dark, moderate blue. Relative luminance 0.024; OKLCH L 28.8% C 0.067 H 261.2°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#172A4C
RGBrgb(23, 42, 76)
HSLhsl(218, 54%, 19%)
HSVhsv(218, 70%, 30%)
CMYKcmyk(69.7%, 44.7%, 0%, 70.2%)
CIE-LABlab(17.27, 4.99, -23.36)
CIE-LCHlch(17.27, 23.89, 282.07°)
OKLaboklab(28.84% -0.0103 -0.0665)
OKLCHoklch(28.84% 0.067 261.2)
XYZxyz(2.4854, 2.3597, 7.1606)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A4C #4C3917
analogous
#17454C #172A4C #1F174C
triadic
#172A4C #4C172A #2A4C17
tetradic
#172A4C #4C1745 #4C3917 #174C1F
square
#172A4C #4C1745 #4C3917 #174C1F
split-complementary
#172A4C #4C1F17 #454C17
monochromatic
#070D17 #09101D #172A4C #25447B #335EAA

Accessibility & contrast

On white

14.27
#172A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#172A4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A4C
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A4C#FFFFFF#000000##FFFFFF
##172A4C1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2D4D
Deuteranopia (green-blind)
#13284B
Tritanopia (blue-blind)
#003237
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #172a4c;
/* rgb */ color: rgb(23, 42, 76);
/* oklch */ color: oklch(28.8% 0.067 261.2);
Tailwind
colors: {
  custom: {
    50: '#5a637e',
    500: '#172a4c',
    950: '#000000',
  },
}
SCSS
$custom: #172a4c;
$custom-light: #5a637e;
$custom-dark: #000000;
JSON
{
  "hex": "#172a4c",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 76
  },
  "hsl": {
    "h": 218.491,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28838,
    "c": 0.06729,
    "h": 261.2
  },
  "luminance": 0.0236
}

Semantic roles & 50–950 ramp

primary
#172A4C
secondary
#836A3C
accent
#A94BDD
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #172A4C

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

Preview Lab → · Contrast checker → · Palette generator →

#172A4C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva