#172779#172779

#172779 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.140 H 268.3°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#172779
RGBrgb(23, 39, 121)
HSLhsl(230, 68%, 28%)
HSVhsv(230, 81%, 47%)
CMYKcmyk(81%, 67.8%, 0%, 52.5%)
CIE-LABlab(20.10, 25.68, -48.39)
CIE-LCHlch(20.10, 54.79, 297.95°)
OKLaboklab(32.13% -0.0041 -0.1401)
OKLCHoklch(32.13% 0.14 268.3)
XYZxyz(4.5289, 3.0132, 18.4284)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172779 #796917
analogous
#175879 #172779 #381779
triadic
#172779 #791727 #277917
tetradic
#172779 #791758 #796917 #177938
square
#172779 #791758 #796917 #177938
split-complementary
#172779 #793817 #587917
monochromatic
#05081A #0D1646 #172779 #2138AC #324DD8

Accessibility & contrast

On white

13.10
#172779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#172779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172779
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172779#FFFFFF#000000##FFFFFF
##1727791.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172779;
/* rgb */ color: rgb(23, 39, 121);
/* oklch */ color: oklch(32.1% 0.140 268.3);
Tailwind
colors: {
  custom: {
    50: '#6661a1',
    500: '#172779',
    950: '#000000',
  },
}
SCSS
$custom: #172779;
$custom-light: #6661a1;
$custom-dark: #000000;
JSON
{
  "hex": "#172779",
  "rgb": {
    "r": 23,
    "g": 39,
    "b": 121
  },
  "hsl": {
    "h": 230.204,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3213,
    "c": 0.14012,
    "h": 268.3
  },
  "luminance": 0.03014
}

Semantic roles & 50–950 ramp

primary
#172779
secondary
#AE9C3E
accent
#CF3DEB
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172779

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

Preview Lab → · Contrast checker → · Palette generator →

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