#172773#172773

#172773 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.5% C 0.132 H 268.3°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#172773
RGBrgb(23, 39, 115)
HSLhsl(230, 67%, 27%)
HSVhsv(230, 80%, 45%)
CMYKcmyk(80%, 66.1%, 0%, 54.9%)
CIE-LABlab(19.52, 23.29, -45.50)
CIE-LCHlch(19.52, 51.11, 297.10°)
OKLaboklab(31.53% -0.0039 -0.1316)
OKLCHoklch(31.53% 0.132 268.3)
XYZxyz(4.1723, 2.8705, 16.5505)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172773 #736317
analogous
#175573 #172773 #351773
triadic
#172773 #731727 #277317
tetradic
#172773 #731755 #736317 #177335
square
#172773 #731755 #736317 #177335
split-complementary
#172773 #733517 #557317
monochromatic
#05091A #0D1640 #172773 #2138A6 #2F4CD5

Accessibility & contrast

On white

13.34
#172773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172773
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172773#FFFFFF#000000##FFFFFF
##1727731.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172773;
/* rgb */ color: rgb(23, 39, 115);
/* oklch */ color: oklch(31.5% 0.132 268.3);
Tailwind
colors: {
  custom: {
    50: '#65619c',
    500: '#172773',
    950: '#000000',
  },
}
SCSS
$custom: #172773;
$custom-light: #65619c;
$custom-dark: #000000;
JSON
{
  "hex": "#172773",
  "rgb": {
    "r": 23,
    "g": 39,
    "b": 115
  },
  "hsl": {
    "h": 229.565,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31527,
    "c": 0.13164,
    "h": 268.3
  },
  "luminance": 0.02871
}

Semantic roles & 50–950 ramp

primary
#172773
secondary
#A9963D
accent
#CC3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172773

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

Preview Lab → · Contrast checker → · Palette generator →

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