#172976#172976

#172976 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.2% C 0.133 H 267.7°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#172976
RGBrgb(23, 41, 118)
HSLhsl(229, 67%, 28%)
HSVhsv(229, 81%, 46%)
CMYKcmyk(80.5%, 65.3%, 0%, 53.7%)
CIE-LABlab(20.34, 23.08, -46.07)
CIE-LCHlch(20.34, 51.53, 296.61°)
OKLaboklab(32.22% -0.0053 -0.1332)
OKLCHoklch(32.22% 0.133 267.7)
XYZxyz(4.4152, 3.0755, 17.4970)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172976 #766417
analogous
#175876 #172976 #351776
triadic
#172976 #761729 #297617
tetradic
#172976 #761758 #766417 #177635
square
#172976 #761758 #766417 #177635
split-complementary
#172976 #763517 #587617
monochromatic
#05091A #0D1743 #172976 #213BA9 #3150D7

Accessibility & contrast

On white

13.00
#172976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#172976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172976
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172976#FFFFFF#000000##FFFFFF
##1729761.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172976;
/* rgb */ color: rgb(23, 41, 118);
/* oklch */ color: oklch(32.2% 0.133 267.7);
Tailwind
colors: {
  custom: {
    50: '#65629e',
    500: '#172976',
    950: '#000000',
  },
}
SCSS
$custom: #172976;
$custom-light: #65629e;
$custom-dark: #000000;
JSON
{
  "hex": "#172976",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 118
  },
  "hsl": {
    "h": 228.632,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32224,
    "c": 0.13334,
    "h": 267.7
  },
  "luminance": 0.03076
}

Semantic roles & 50–950 ramp

primary
#172976
secondary
#AB963E
accent
#CA3EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #172976

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

Preview Lab → · Contrast checker → · Palette generator →

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