#172066#172066

#172066 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 28.8% C 0.122 H 270.8°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#172066
RGBrgb(23, 32, 102)
HSLhsl(233, 63%, 25%)
HSVhsv(233, 77%, 40%)
CMYKcmyk(77.5%, 68.6%, 0%, 60%)
CIE-LABlab(16.38, 23.02, -42.19)
CIE-LCHlch(16.38, 48.07, 298.62°)
OKLaboklab(28.83% 0.0016 -0.122)
OKLCHoklch(28.83% 0.122 270.8)
XYZxyz(3.2673, 2.1742, 12.8153)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172066 #665D17
analogous
#174766 #172066 #361766
triadic
#172066 #661720 #206617
tetradic
#172066 #661747 #665D17 #176636
square
#172066 #661747 #665D17 #176636
split-complementary
#172066 #663617 #476617
monochromatic
#060819 #0C1034 #172066 #223098 #2E3FCA

Accessibility & contrast

On white

14.64
#172066 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#172066 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172066
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172066#FFFFFF#000000##FFFFFF
##1720661.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#00323F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #172066;
/* rgb */ color: rgb(23, 32, 102);
/* oklch */ color: oklch(28.8% 0.122 270.8);
Tailwind
colors: {
  custom: {
    50: '#625b92',
    500: '#172066',
    950: '#000000',
  },
}
SCSS
$custom: #172066;
$custom-light: #625b92;
$custom-dark: #000000;
JSON
{
  "hex": "#172066",
  "rgb": {
    "r": 23,
    "g": 32,
    "b": 102
  },
  "hsl": {
    "h": 233.165,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28832,
    "c": 0.12197,
    "h": 270.8
  },
  "luminance": 0.02174
}

Semantic roles & 50–950 ramp

primary
#172066
secondary
#9C913C
accent
#D342E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #172066

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

Preview Lab → · Contrast checker → · Palette generator →

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