#172866#172866

#172866 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.5% C 0.111 H 267.6°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#172866
RGBrgb(23, 40, 102)
HSLhsl(227, 63%, 25%)
HSVhsv(227, 77%, 40%)
CMYKcmyk(77.5%, 60.8%, 0%, 60%)
CIE-LABlab(18.62, 17.27, -38.53)
CIE-LCHlch(18.62, 42.22, 294.14°)
OKLaboklab(30.5% -0.0047 -0.1111)
OKLCHoklch(30.5% 0.111 267.6)
XYZxyz(3.5096, 2.6587, 12.8960)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172866 #665517
analogous
#175066 #172866 #2E1766
triadic
#172866 #661728 #286617
tetradic
#172866 #661750 #665517 #17662E
square
#172866 #661750 #665517 #17662E
split-complementary
#172866 #662E17 #506617
monochromatic
#060A19 #0C1434 #172866 #223C98 #2E4FCA

Accessibility & contrast

On white

13.71
#172866 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#172866 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172866
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172866#FFFFFF#000000##FFFFFF
##1728661.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003168
Deuteranopia (green-blind)
#002A65
Tritanopia (blue-blind)
#003742
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172866;
/* rgb */ color: rgb(23, 40, 102);
/* oklch */ color: oklch(30.5% 0.111 267.6);
Tailwind
colors: {
  custom: {
    50: '#616192',
    500: '#172866',
    950: '#000000',
  },
}
SCSS
$custom: #172866;
$custom-light: #616192;
$custom-dark: #000000;
JSON
{
  "hex": "#172866",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 102
  },
  "hsl": {
    "h": 227.089,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30495,
    "c": 0.11121,
    "h": 267.6
  },
  "luminance": 0.02659
}

Semantic roles & 50–950 ramp

primary
#172866
secondary
#9C883C
accent
#C342E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#05050D
muted
#7A797E

Preview Lab

Preview with #172866

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

Preview Lab → · Contrast checker → · Palette generator →

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