#173274#173274

#173274 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.0% C 0.118 H 264.2°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#173274
RGBrgb(23, 50, 116)
HSLhsl(223, 67%, 27%)
HSVhsv(223, 80%, 45%)
CMYKcmyk(80.2%, 56.9%, 0%, 54.5%)
CIE-LABlab(22.74, 15.84, -40.89)
CIE-LCHlch(22.74, 43.85, 291.17°)
OKLaboklab(33.96% -0.0119 -0.1179)
OKLCHoklch(33.96% 0.118 264.2)
XYZxyz(4.6452, 3.7238, 16.9936)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173274 #745917
analogous
#176074 #173274 #2B1774
triadic
#173274 #741732 #327417
tetradic
#173274 #741760 #745917 #17742B
square
#173274 #741760 #745917 #17742B
split-complementary
#173274 #742B17 #607417
monochromatic
#050B1A #0D1C41 #173274 #2148A7 #3060D6

Accessibility & contrast

On white

12.04
#173274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#173274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173274
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173274#FFFFFF#000000##FFFFFF
##1732741.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B76
Deuteranopia (green-blind)
#003273
Tritanopia (blue-blind)
#00424D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #173274;
/* rgb */ color: rgb(23, 50, 116);
/* oklch */ color: oklch(34.0% 0.118 264.2);
Tailwind
colors: {
  custom: {
    50: '#64699d',
    500: '#173274',
    950: '#000000',
  },
}
SCSS
$custom: #173274;
$custom-light: #64699d;
$custom-dark: #000000;
JSON
{
  "hex": "#173274",
  "rgb": {
    "r": 23,
    "g": 50,
    "b": 116
  },
  "hsl": {
    "h": 222.581,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.33959,
    "c": 0.11849,
    "h": 264.2
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#173274
secondary
#A98A3D
accent
#B83EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #173274

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

Preview Lab → · Contrast checker → · Palette generator →

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