#171875#171875

#171875 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.152 H 271.5°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#171875
RGBrgb(23, 24, 117)
HSLhsl(239, 67%, 27%)
HSVhsv(239, 80%, 46%)
CMYKcmyk(80.3%, 79.5%, 0%, 54.1%)
CIE-LABlab(16.10, 33.94, -52.41)
CIE-LCHlch(16.10, 62.44, 302.92°)
OKLaboklab(29.12% 0.0039 -0.1517)
OKLCHoklch(29.12% 0.152 271.5)
XYZxyz(3.8898, 2.1194, 17.0302)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171875 #757417
analogous
#174775 #171875 #451775
triadic
#171875 #751718 #187517
tetradic
#171875 #751747 #757417 #177545
square
#171875 #751747 #757417 #177545
split-complementary
#171875 #754517 #477517
monochromatic
#05051A #0D0E42 #171875 #2122A8 #3032D6

Accessibility & contrast

On white

14.75
#171875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#171875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171875
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171875#FFFFFF#000000##FFFFFF
##1718751.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002373
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171875;
/* rgb */ color: rgb(23, 24, 117);
/* oklch */ color: oklch(29.1% 0.152 271.5);
Tailwind
colors: {
  custom: {
    50: '#67569e',
    500: '#171875',
    950: '#000000',
  },
}
SCSS
$custom: #171875;
$custom-light: #67569e;
$custom-dark: #000000;
JSON
{
  "hex": "#171875",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 239.362,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29123,
    "c": 0.15179,
    "h": 271.5
  },
  "luminance": 0.0212
}

Semantic roles & 50–950 ramp

primary
#171875
secondary
#AAA93D
accent
#E83EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171875

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

Preview Lab → · Contrast checker → · Palette generator →

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