#172281#172281

#172281 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.157 H 269.2°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#172281
RGBrgb(23, 34, 129)
HSLhsl(234, 70%, 30%)
HSVhsv(234, 82%, 51%)
CMYKcmyk(82.2%, 73.6%, 0%, 49.4%)
CIE-LABlab(19.68, 32.12, -54.16)
CIE-LCHlch(19.68, 62.97, 300.67°)
OKLaboklab(32.08% -0.0022 -0.1569)
OKLCHoklch(32.08% 0.157 269.2)
XYZxyz(4.8865, 2.9106, 21.0689)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172281 #817617
analogous
#175781 #172281 #411781
triadic
#172281 #811722 #228117
tetradic
#172281 #811757 #817617 #178141
square
#172281 #811757 #817617 #178141
split-complementary
#172281 #814117 #578117
monochromatic
#05071A #0E144D #172281 #2030B5 #3748DB

Accessibility & contrast

On white

13.27
#172281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#172281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172281
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172281#FFFFFF#000000##FFFFFF
##1722811.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172281;
/* rgb */ color: rgb(23, 34, 129);
/* oklch */ color: oklch(32.1% 0.157 269.2);
Tailwind
colors: {
  custom: {
    50: '#695da7',
    500: '#172281',
    950: '#000000',
  },
}
SCSS
$custom: #172281;
$custom-light: #695da7;
$custom-dark: #000000;
JSON
{
  "hex": "#172281",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 129
  },
  "hsl": {
    "h": 233.774,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32079,
    "c": 0.15691,
    "h": 269.2
  },
  "luminance": 0.02911
}

Semantic roles & 50–950 ramp

primary
#172281
secondary
#B5A93E
accent
#DA3BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#070410
muted
#7A797F

Preview Lab

Preview with #172281

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

Preview Lab → · Contrast checker → · Palette generator →

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