#172668#172668

#172668 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.3% C 0.117 H 268.5°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#172668
RGBrgb(23, 38, 104)
HSLhsl(229, 64%, 25%)
HSVhsv(229, 78%, 41%)
CMYKcmyk(77.9%, 63.5%, 0%, 59.2%)
CIE-LABlab(18.22, 19.54, -40.49)
CIE-LCHlch(18.22, 44.96, 295.76°)
OKLaboklab(30.25% -0.003 -0.1169)
OKLCHoklch(30.25% 0.117 268.5)
XYZxyz(3.5443, 2.5675, 13.4028)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172668 #685917
analogous
#174F68 #172668 #311768
triadic
#172668 #681726 #266817
tetradic
#172668 #68174F #685917 #176831
square
#172668 #68174F #685917 #176831
split-complementary
#172668 #683117 #4F6817
monochromatic
#060919 #0C1436 #172668 #22389A #2D4BCC

Accessibility & contrast

On white

13.87
#172668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#172668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172668
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172668#FFFFFF#000000##FFFFFF
##1726681.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#002967
Tritanopia (blue-blind)
#003743
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172668;
/* rgb */ color: rgb(23, 38, 104);
/* oklch */ color: oklch(30.3% 0.117 268.5);
Tailwind
colors: {
  custom: {
    50: '#626094',
    500: '#172668',
    950: '#000000',
  },
}
SCSS
$custom: #172668;
$custom-light: #626094;
$custom-dark: #000000;
JSON
{
  "hex": "#172668",
  "rgb": {
    "r": 23,
    "g": 38,
    "b": 104
  },
  "hsl": {
    "h": 228.889,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30252,
    "c": 0.11694,
    "h": 268.5
  },
  "luminance": 0.02568
}

Semantic roles & 50–950 ramp

primary
#172668
secondary
#9E8C3D
accent
#C841E7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #172668

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

Preview Lab → · Contrast checker → · Palette generator →

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