#172875#172875

#172875 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.9% C 0.133 H 268.0°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#172875
RGBrgb(23, 40, 117)
HSLhsl(229, 67%, 27%)
HSVhsv(229, 80%, 46%)
CMYKcmyk(80.3%, 65.8%, 0%, 54.1%)
CIE-LABlab(19.98, 23.39, -46.03)
CIE-LCHlch(19.98, 51.63, 296.93°)
OKLaboklab(31.92% -0.0046 -0.1331)
OKLCHoklch(31.92% 0.133 268)
XYZxyz(4.3219, 2.9836, 17.1743)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172875 #756417
analogous
#175775 #172875 #351775
triadic
#172875 #751728 #287517
tetradic
#172875 #751757 #756417 #177535
square
#172875 #751757 #756417 #177535
split-complementary
#172875 #753517 #577517
monochromatic
#05091A #0D1742 #172875 #2139A8 #304ED6

Accessibility & contrast

On white

13.15
#172875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172875
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172875#FFFFFF#000000##FFFFFF
##1728751.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172875;
/* rgb */ color: rgb(23, 40, 117);
/* oklch */ color: oklch(31.9% 0.133 268.0);
Tailwind
colors: {
  custom: {
    50: '#65619e',
    500: '#172875',
    950: '#000000',
  },
}
SCSS
$custom: #172875;
$custom-light: #65619e;
$custom-dark: #000000;
JSON
{
  "hex": "#172875",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 117
  },
  "hsl": {
    "h": 229.149,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31925,
    "c": 0.13321,
    "h": 268
  },
  "luminance": 0.02984
}

Semantic roles & 50–950 ramp

primary
#172875
secondary
#AA973D
accent
#CB3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172875

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

Preview Lab → · Contrast checker → · Palette generator →

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