#172E6C#172E6C

#172E6C is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.4% C 0.112 H 265.2°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#172E6C
RGBrgb(23, 46, 108)
HSLhsl(224, 65%, 26%)
HSVhsv(224, 79%, 42%)
CMYKcmyk(78.7%, 57.4%, 0%, 57.6%)
CIE-LABlab(20.90, 15.40, -38.73)
CIE-LCHlch(20.90, 41.68, 291.68°)
OKLaboklab(32.37% -0.0093 -0.1116)
OKLCHoklch(32.37% 0.112 265.2)
XYZxyz(4.0362, 3.2184, 14.5929)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E6C #6C5517
analogous
#17586C #172E6C #2B176C
triadic
#172E6C #6C172E #2E6C17
tetradic
#172E6C #6C1758 #6C5517 #176C2B
square
#172E6C #6C1758 #6C5517 #176C2B
split-complementary
#172E6C #6C2B17 #586C17
monochromatic
#050B19 #0C193A #172E6C #22439E #2C59D1

Accessibility & contrast

On white

12.78
#172E6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#172E6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E6C
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E6C#FFFFFF#000000##FFFFFF
##172E6C1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366E
Deuteranopia (green-blind)
#002F6B
Tritanopia (blue-blind)
#003D48
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172e6c;
/* rgb */ color: rgb(23, 46, 108);
/* oklch */ color: oklch(32.4% 0.112 265.2);
Tailwind
colors: {
  custom: {
    50: '#626697',
    500: '#172e6c',
    950: '#000000',
  },
}
SCSS
$custom: #172e6c;
$custom-light: #626697;
$custom-dark: #000000;
JSON
{
  "hex": "#172e6c",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 108
  },
  "hsl": {
    "h": 223.765,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32366,
    "c": 0.112,
    "h": 265.2
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

primary
#172E6C
secondary
#A2873D
accent
#BA40E8
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #172E6C

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

Preview Lab → · Contrast checker → · Palette generator →

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