#172975#172975

#172975 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.1% C 0.132 H 267.7°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#172975
RGBrgb(23, 41, 117)
HSLhsl(229, 67%, 27%)
HSVhsv(229, 80%, 46%)
CMYKcmyk(80.3%, 65%, 0%, 54.1%)
CIE-LABlab(20.25, 22.68, -45.58)
CIE-LCHlch(20.25, 50.91, 296.45°)
OKLaboklab(32.13% -0.0052 -0.1318)
OKLCHoklch(32.13% 0.132 267.7)
XYZxyz(4.3561, 3.0519, 17.1857)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172975 #756317
analogous
#175875 #172975 #341775
triadic
#172975 #751729 #297517
tetradic
#172975 #751758 #756317 #177534
square
#172975 #751758 #756317 #177534
split-complementary
#172975 #753417 #587517
monochromatic
#05091A #0D1742 #172975 #213BA8 #3050D6

Accessibility & contrast

On white

13.04
#172975 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#172975 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172975
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172975#FFFFFF#000000##FFFFFF
##1729751.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172975;
/* rgb */ color: rgb(23, 41, 117);
/* oklch */ color: oklch(32.1% 0.132 267.7);
Tailwind
colors: {
  custom: {
    50: '#65629e',
    500: '#172975',
    950: '#000000',
  },
}
SCSS
$custom: #172975;
$custom-light: #65629e;
$custom-dark: #000000;
JSON
{
  "hex": "#172975",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 117
  },
  "hsl": {
    "h": 228.511,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32127,
    "c": 0.13191,
    "h": 267.7
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#172975
secondary
#AA963D
accent
#C93EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172975

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

Preview Lab → · Contrast checker → · Palette generator →

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