#172B83#172B83

#172B83 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.149 H 267.3°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#172B83
RGBrgb(23, 43, 131)
HSLhsl(229, 70%, 30%)
HSVhsv(229, 82%, 51%)
CMYKcmyk(82.4%, 67.2%, 0%, 48.6%)
CIE-LABlab(22.12, 26.87, -51.41)
CIE-LCHlch(22.12, 58.01, 297.60°)
OKLaboklab(33.91% -0.0069 -0.1488)
OKLCHoklch(33.91% 0.149 267.3)
XYZxyz(5.3125, 3.5480, 21.8732)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B83 #836F17
analogous
#176183 #172B83 #391783
triadic
#172B83 #83172B #2B8317
tetradic
#172B83 #831761 #836F17 #178339
square
#172B83 #831761 #836F17 #178339
split-complementary
#172B83 #833917 #618317
monochromatic
#05091B #0E1A4F #172B83 #203CB7 #3857DC

Accessibility & contrast

On white

12.28
#172B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#172B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B83
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B83#FFFFFF#000000##FFFFFF
##172B831.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172b83;
/* rgb */ color: rgb(23, 43, 131);
/* oklch */ color: oklch(33.9% 0.149 267.3);
Tailwind
colors: {
  custom: {
    50: '#6964a8',
    500: '#172b83',
    950: '#000000',
  },
}
SCSS
$custom: #172b83;
$custom-light: #6964a8;
$custom-dark: #000000;
JSON
{
  "hex": "#172b83",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 131
  },
  "hsl": {
    "h": 228.889,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33911,
    "c": 0.14901,
    "h": 267.3
  },
  "luminance": 0.03549
}

Semantic roles & 50–950 ramp

primary
#172B83
secondary
#B7A13F
accent
#CC3BED
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#070510
muted
#7A797F

Preview Lab

Preview with #172B83

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

Preview Lab → · Contrast checker → · Palette generator →

#172B83 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva