#172074#172074

#172074 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.142 H 270.1°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#172074
RGBrgb(23, 32, 116)
HSLhsl(234, 67%, 27%)
HSVhsv(234, 80%, 45%)
CMYKcmyk(80.2%, 72.4%, 0%, 54.5%)
CIE-LABlab(17.81, 28.50, -48.95)
CIE-LCHlch(17.81, 56.64, 300.21°)
OKLaboklab(30.31% 0.0003 -0.1417)
OKLCHoklch(30.31% 0.142 270.1)
XYZxyz(4.0212, 2.4757, 16.7855)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172074 #746B17
analogous
#174E74 #172074 #3D1774
triadic
#172074 #741720 #207417
tetradic
#172074 #74174E #746B17 #17743D
square
#172074 #74174E #746B17 #17743D
split-complementary
#172074 #743D17 #4E7417
monochromatic
#05071A #0D1241 #172074 #212EA7 #3040D6

Accessibility & contrast

On white

14.04
#172074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#172074 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172074
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172074#FFFFFF#000000##FFFFFF
##1720741.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172074;
/* rgb */ color: rgb(23, 32, 116);
/* oklch */ color: oklch(30.3% 0.142 270.1);
Tailwind
colors: {
  custom: {
    50: '#665c9d',
    500: '#172074',
    950: '#000000',
  },
}
SCSS
$custom: #172074;
$custom-light: #665c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#172074",
  "rgb": {
    "r": 23,
    "g": 32,
    "b": 116
  },
  "hsl": {
    "h": 234.194,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30309,
    "c": 0.14171,
    "h": 270.1
  },
  "luminance": 0.02476
}

Semantic roles & 50–950 ramp

primary
#172074
secondary
#A99F3D
accent
#D93EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #172074

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

Preview Lab → · Contrast checker → · Palette generator →

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