#172D7F#172D7F

#172D7F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.141 H 266.8°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#172D7F
RGBrgb(23, 45, 127)
HSLhsl(227, 69%, 29%)
HSVhsv(227, 82%, 50%)
CMYKcmyk(81.9%, 64.6%, 0%, 50.2%)
CIE-LABlab(22.27, 23.90, -48.64)
CIE-LCHlch(22.27, 54.20, 296.16°)
OKLaboklab(33.91% -0.008 -0.1407)
OKLCHoklch(33.91% 0.141 266.8)
XYZxyz(5.1212, 3.5906, 20.4977)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D7F #7F6917
analogous
#17617F #172D7F #35177F
triadic
#172D7F #7F172D #2D7F17
tetradic
#172D7F #7F1761 #7F6917 #177F35
square
#172D7F #7F1761 #7F6917 #177F35
split-complementary
#172D7F #7F3517 #617F17
monochromatic
#05091A #0E1B4B #172D7F #203FB3 #3659DB

Accessibility & contrast

On white

12.22
#172D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#172D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D7F
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D7F#FFFFFF#000000##FFFFFF
##172D7F1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172d7f;
/* rgb */ color: rgb(23, 45, 127);
/* oklch */ color: oklch(33.9% 0.141 266.8);
Tailwind
colors: {
  custom: {
    50: '#6765a5',
    500: '#172d7f',
    950: '#000000',
  },
}
SCSS
$custom: #172d7f;
$custom-light: #6765a5;
$custom-dark: #000000;
JSON
{
  "hex": "#172d7f",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 227.308,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33907,
    "c": 0.14095,
    "h": 266.8
  },
  "luminance": 0.03591
}

Semantic roles & 50–950 ramp

primary
#172D7F
secondary
#B49B3E
accent
#C73CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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