#172774#172774

#172774 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.6% C 0.133 H 268.3°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#172774
RGBrgb(23, 39, 116)
HSLhsl(230, 67%, 27%)
HSVhsv(230, 80%, 45%)
CMYKcmyk(80.2%, 66.4%, 0%, 54.5%)
CIE-LABlab(19.61, 23.69, -45.99)
CIE-LCHlch(19.61, 51.73, 297.25°)
OKLaboklab(31.63% -0.0039 -0.133)
OKLCHoklch(31.63% 0.133 268.3)
XYZxyz(4.2302, 2.8937, 16.8552)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172774 #746417
analogous
#175674 #172774 #351774
triadic
#172774 #741727 #277417
tetradic
#172774 #741756 #746417 #177435
square
#172774 #741756 #746417 #177435
split-complementary
#172774 #743517 #567417
monochromatic
#05091A #0D1641 #172774 #2138A7 #304CD6

Accessibility & contrast

On white

13.30
#172774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#172774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172774
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172774#FFFFFF#000000##FFFFFF
##1727741.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#002B73
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172774;
/* rgb */ color: rgb(23, 39, 116);
/* oklch */ color: oklch(31.6% 0.133 268.3);
Tailwind
colors: {
  custom: {
    50: '#65619d',
    500: '#172774',
    950: '#000000',
  },
}
SCSS
$custom: #172774;
$custom-light: #65619d;
$custom-dark: #000000;
JSON
{
  "hex": "#172774",
  "rgb": {
    "r": 23,
    "g": 39,
    "b": 116
  },
  "hsl": {
    "h": 229.677,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31627,
    "c": 0.13307,
    "h": 268.3
  },
  "luminance": 0.02894
}

Semantic roles & 50–950 ramp

primary
#172774
secondary
#A9973D
accent
#CC3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172774

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

Preview Lab → · Contrast checker → · Palette generator →

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