#172168#172168

#172168 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.2% C 0.124 H 270.3°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#172168
RGBrgb(23, 33, 104)
HSLhsl(233, 64%, 25%)
HSVhsv(233, 78%, 41%)
CMYKcmyk(77.9%, 68.3%, 0%, 59.2%)
CIE-LABlab(16.84, 23.11, -42.75)
CIE-LCHlch(16.84, 48.59, 298.40°)
OKLaboklab(29.23% 0.0008 -0.1236)
OKLCHoklch(29.23% 0.124 270.3)
XYZxyz(3.3950, 2.2690, 13.3531)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172168 #685E17
analogous
#174968 #172168 #361768
triadic
#172168 #681721 #216817
tetradic
#172168 #681749 #685E17 #176836
square
#172168 #681749 #685E17 #176836
split-complementary
#172168 #683617 #496817
monochromatic
#060819 #0C1136 #172168 #22319A #2D41CC

Accessibility & contrast

On white

14.44
#172168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#172168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172168
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172168#FFFFFF#000000##FFFFFF
##1721681.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002667
Tritanopia (blue-blind)
#003441
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #172168;
/* rgb */ color: rgb(23, 33, 104);
/* oklch */ color: oklch(29.2% 0.124 270.3);
Tailwind
colors: {
  custom: {
    50: '#625c94',
    500: '#172168',
    950: '#000000',
  },
}
SCSS
$custom: #172168;
$custom-light: #625c94;
$custom-dark: #000000;
JSON
{
  "hex": "#172168",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 232.593,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29232,
    "c": 0.12357,
    "h": 270.3
  },
  "luminance": 0.02269
}

Semantic roles & 50–950 ramp

primary
#172168
secondary
#9E923D
accent
#D241E7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #172168

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

Preview Lab → · Contrast checker → · Palette generator →

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