#172368#172368

#172368 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.6% C 0.121 H 269.7°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#172368
RGBrgb(23, 35, 104)
HSLhsl(231, 64%, 25%)
HSVhsv(231, 78%, 41%)
CMYKcmyk(77.9%, 66.3%, 0%, 59.2%)
CIE-LABlab(17.38, 21.70, -41.86)
CIE-LCHlch(17.38, 47.15, 297.40°)
OKLaboklab(29.63% -0.0007 -0.1209)
OKLCHoklch(29.63% 0.121 269.7)
XYZxyz(3.4522, 2.3833, 13.3721)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172368 #685C17
analogous
#174C68 #172368 #331768
triadic
#172368 #681723 #236817
tetradic
#172368 #68174C #685C17 #176833
square
#172368 #68174C #685C17 #176833
split-complementary
#172368 #683317 #4C6817
monochromatic
#060819 #0C1236 #172368 #22349A #2D45CC

Accessibility & contrast

On white

14.22
#172368 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#172368 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172368
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172368#FFFFFF#000000##FFFFFF
##1723681.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#002767
Tritanopia (blue-blind)
#003542
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172368;
/* rgb */ color: rgb(23, 35, 104);
/* oklch */ color: oklch(29.6% 0.121 269.7);
Tailwind
colors: {
  custom: {
    50: '#625d94',
    500: '#172368',
    950: '#000000',
  },
}
SCSS
$custom: #172368;
$custom-light: #625d94;
$custom-dark: #000000;
JSON
{
  "hex": "#172368",
  "rgb": {
    "r": 23,
    "g": 35,
    "b": 104
  },
  "hsl": {
    "h": 231.111,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29631,
    "c": 0.12095,
    "h": 269.7
  },
  "luminance": 0.02384
}

Semantic roles & 50–950 ramp

primary
#172368
secondary
#9E903D
accent
#CE41E7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #172368

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

Preview Lab → · Contrast checker → · Palette generator →

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