#172783#172783

#172783 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.154 H 268.2°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#172783
RGBrgb(23, 39, 131)
HSLhsl(231, 70%, 30%)
HSVhsv(231, 82%, 51%)
CMYKcmyk(82.4%, 70.2%, 0%, 48.6%)
CIE-LABlab(21.10, 29.59, -53.09)
CIE-LCHlch(21.10, 60.78, 299.13°)
OKLaboklab(33.17% -0.0048 -0.1538)
OKLCHoklch(33.17% 0.154 268.2)
XYZxyz(5.1742, 3.2713, 21.8270)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172783 #837317
analogous
#175D83 #172783 #3D1783
triadic
#172783 #831727 #278317
tetradic
#172783 #83175D #837317 #17833D
square
#172783 #83175D #837317 #17833D
split-complementary
#172783 #833D17 #5D8317
monochromatic
#05081B #0E184F #172783 #2036B7 #3851DC

Accessibility & contrast

On white

12.69
#172783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#172783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172783
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172783#FFFFFF#000000##FFFFFF
##1727831.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#002E81
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172783;
/* rgb */ color: rgb(23, 39, 131);
/* oklch */ color: oklch(33.2% 0.154 268.2);
Tailwind
colors: {
  custom: {
    50: '#6961a8',
    500: '#172783',
    950: '#000000',
  },
}
SCSS
$custom: #172783;
$custom-light: #6961a8;
$custom-dark: #000000;
JSON
{
  "hex": "#172783",
  "rgb": {
    "r": 23,
    "g": 39,
    "b": 131
  },
  "hsl": {
    "h": 231.111,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33167,
    "c": 0.15383,
    "h": 268.2
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#172783
secondary
#B7A53F
accent
#D33BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#070510
muted
#7A797F

Preview Lab

Preview with #172783

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

Preview Lab → · Contrast checker → · Palette generator →

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