#172674#172674

#172674 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.134 H 268.6°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#172674
RGBrgb(23, 38, 116)
HSLhsl(230, 67%, 27%)
HSVhsv(230, 80%, 45%)
CMYKcmyk(80.2%, 67.2%, 0%, 54.5%)
CIE-LABlab(19.35, 24.39, -46.42)
CIE-LCHlch(19.35, 52.44, 297.71°)
OKLaboklab(31.43% -0.0032 -0.1343)
OKLCHoklch(31.43% 0.134 268.6)
XYZxyz(4.1978, 2.8289, 16.8444)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172674 #746517
analogous
#175474 #172674 #371774
triadic
#172674 #741726 #267417
tetradic
#172674 #741754 #746517 #177437
square
#172674 #741754 #746517 #177437
split-complementary
#172674 #743717 #547417
monochromatic
#05081A #0D1541 #172674 #2137A7 #304AD6

Accessibility & contrast

On white

13.41
#172674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#172674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172674
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172674#FFFFFF#000000##FFFFFF
##1726741.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172674;
/* rgb */ color: rgb(23, 38, 116);
/* oklch */ color: oklch(31.4% 0.134 268.6);
Tailwind
colors: {
  custom: {
    50: '#65609d',
    500: '#172674',
    950: '#000000',
  },
}
SCSS
$custom: #172674;
$custom-light: #65609d;
$custom-dark: #000000;
JSON
{
  "hex": "#172674",
  "rgb": {
    "r": 23,
    "g": 38,
    "b": 116
  },
  "hsl": {
    "h": 230.323,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3143,
    "c": 0.13434,
    "h": 268.6
  },
  "luminance": 0.02829
}

Semantic roles & 50–950 ramp

primary
#172674
secondary
#A9983D
accent
#CE3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172674

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

Preview Lab → · Contrast checker → · Palette generator →

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