#172775#172775

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

Color values

HEX#172775
RGBrgb(23, 39, 117)
HSLhsl(230, 67%, 27%)
HSVhsv(230, 80%, 46%)
CMYKcmyk(80.3%, 66.7%, 0%, 54.1%)
CIE-LABlab(19.71, 24.09, -46.47)
CIE-LCHlch(19.71, 52.34, 297.40°)
OKLaboklab(31.73% -0.0039 -0.1344)
OKLCHoklch(31.73% 0.134 268.3)
XYZxyz(4.2886, 2.9171, 17.1632)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172775 #756517
analogous
#175675 #172775 #361775
triadic
#172775 #751727 #277517
tetradic
#172775 #751756 #756517 #177536
square
#172775 #751756 #756517 #177536
split-complementary
#172775 #753617 #567517
monochromatic
#05091A #0D1642 #172775 #2138A8 #304CD6

Accessibility & contrast

On white

13.26
#172775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#172775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172775
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172775#FFFFFF#000000##FFFFFF
##1727751.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172775;
/* rgb */ color: rgb(23, 39, 117);
/* oklch */ color: oklch(31.7% 0.134 268.3);
Tailwind
colors: {
  custom: {
    50: '#65619e',
    500: '#172775',
    950: '#000000',
  },
}
SCSS
$custom: #172775;
$custom-light: #65619e;
$custom-dark: #000000;
JSON
{
  "hex": "#172775",
  "rgb": {
    "r": 23,
    "g": 39,
    "b": 117
  },
  "hsl": {
    "h": 229.787,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31727,
    "c": 0.13449,
    "h": 268.3
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#172775
secondary
#AA983D
accent
#CD3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172775

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

Preview Lab → · Contrast checker → · Palette generator →

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