#172974#172974

#172974 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.0% C 0.130 H 267.7°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#172974
RGBrgb(23, 41, 116)
HSLhsl(228, 67%, 27%)
HSVhsv(228, 80%, 45%)
CMYKcmyk(80.2%, 64.7%, 0%, 54.5%)
CIE-LABlab(20.16, 22.28, -45.09)
CIE-LCHlch(20.16, 50.30, 296.29°)
OKLaboklab(32.03% -0.0052 -0.1304)
OKLCHoklch(32.03% 0.13 267.7)
XYZxyz(4.2976, 3.0285, 16.8777)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172974 #746217
analogous
#175874 #172974 #341774
triadic
#172974 #741729 #297417
tetradic
#172974 #741758 #746217 #177434
square
#172974 #741758 #746217 #177434
split-complementary
#172974 #743417 #587417
monochromatic
#05091A #0D1741 #172974 #213BA7 #3050D6

Accessibility & contrast

On white

13.08
#172974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#172974 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172974
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172974#FFFFFF#000000##FFFFFF
##1729741.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#002C73
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172974;
/* rgb */ color: rgb(23, 41, 116);
/* oklch */ color: oklch(32.0% 0.130 267.7);
Tailwind
colors: {
  custom: {
    50: '#65629d',
    500: '#172974',
    950: '#000000',
  },
}
SCSS
$custom: #172974;
$custom-light: #65629d;
$custom-dark: #000000;
JSON
{
  "hex": "#172974",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 116
  },
  "hsl": {
    "h": 228.387,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32029,
    "c": 0.13047,
    "h": 267.7
  },
  "luminance": 0.03029
}

Semantic roles & 50–950 ramp

primary
#172974
secondary
#A9953D
accent
#C93EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172974

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

Preview Lab → · Contrast checker → · Palette generator →

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