#172474#172474

#172474 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.137 H 269.2°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#172474
RGBrgb(23, 36, 116)
HSLhsl(232, 67%, 27%)
HSVhsv(232, 80%, 45%)
CMYKcmyk(80.2%, 69%, 0%, 54.5%)
CIE-LABlab(18.82, 25.78, -47.29)
CIE-LCHlch(18.82, 53.86, 298.60°)
OKLaboklab(31.04% -0.002 -0.1368)
OKLCHoklch(31.04% 0.137 269.2)
XYZxyz(4.1355, 2.7044, 16.8237)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172474 #746717
analogous
#175374 #172474 #391774
triadic
#172474 #741724 #247417
tetradic
#172474 #741753 #746717 #177439
square
#172474 #741753 #746717 #177439
split-complementary
#172474 #743917 #537417
monochromatic
#05081A #0D1441 #172474 #2134A7 #3047D6

Accessibility & contrast

On white

13.63
#172474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#172474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172474
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172474#FFFFFF#000000##FFFFFF
##1724741.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#003948
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172474;
/* rgb */ color: rgb(23, 36, 116);
/* oklch */ color: oklch(31.0% 0.137 269.2);
Tailwind
colors: {
  custom: {
    50: '#655e9d',
    500: '#172474',
    950: '#000000',
  },
}
SCSS
$custom: #172474;
$custom-light: #655e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#172474",
  "rgb": {
    "r": 23,
    "g": 36,
    "b": 116
  },
  "hsl": {
    "h": 231.613,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31044,
    "c": 0.13685,
    "h": 269.2
  },
  "luminance": 0.02705
}

Semantic roles & 50–950 ramp

primary
#172474
secondary
#A99A3D
accent
#D23EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #172474

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

Preview Lab → · Contrast checker → · Palette generator →

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