#172284#172284

#172284 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.161 H 269.1°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#172284
RGBrgb(23, 34, 132)
HSLhsl(234, 70%, 30%)
HSVhsv(234, 83%, 52%)
CMYKcmyk(82.6%, 74.2%, 0%, 48.2%)
CIE-LABlab(20.01, 33.23, -55.51)
CIE-LCHlch(20.01, 64.70, 300.91°)
OKLaboklab(32.41% -0.0026 -0.1608)
OKLCHoklch(32.41% 0.161 269.1)
XYZxyz(5.0888, 2.9916, 22.1345)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172284 #847917
analogous
#175884 #172284 #421784
triadic
#172284 #841722 #228417
tetradic
#172284 #841758 #847917 #178442
square
#172284 #841758 #847917 #178442
split-complementary
#172284 #844217 #588417
monochromatic
#05071C #0E1550 #172284 #202FB8 #3949DC

Accessibility & contrast

On white

13.14
#172284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#172284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172284
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172284#FFFFFF#000000##FFFFFF
##1722841.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172284;
/* rgb */ color: rgb(23, 34, 132);
/* oklch */ color: oklch(32.4% 0.161 269.1);
Tailwind
colors: {
  custom: {
    50: '#6a5ea9',
    500: '#172284',
    950: '#000000',
  },
}
SCSS
$custom: #172284;
$custom-light: #6a5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#172284",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 233.945,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32413,
    "c": 0.16085,
    "h": 269.1
  },
  "luminance": 0.02992
}

Semantic roles & 50–950 ramp

primary
#172284
secondary
#B8AC3F
accent
#DB3BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #172284

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

Preview Lab → · Contrast checker → · Palette generator →

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