#172E50#172E50

#172E50 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.2% C 0.068 H 258.1°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#172E50
RGBrgb(23, 46, 80)
HSLhsl(216, 55%, 20%)
HSVhsv(216, 71%, 31%)
CMYKcmyk(71.2%, 42.5%, 0%, 68.6%)
CIE-LABlab(18.86, 3.73, -23.53)
CIE-LCHlch(18.86, 23.83, 279.02°)
OKLaboklab(30.16% -0.0141 -0.0669)
OKLCHoklch(30.16% 0.068 258.1)
XYZxyz(2.7778, 2.7151, 7.9655)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E50 #503917
analogous
#174B50 #172E50 #1C1750
triadic
#172E50 #50172E #2E5017
tetradic
#172E50 #50174B #503917 #17501C
square
#172E50 #50174B #503917 #17501C
split-complementary
#172E50 #501C17 #4B5017
monochromatic
#070E18 #091320 #172E50 #254980 #3265AF

Accessibility & contrast

On white

13.61
#172E50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#172E50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E50
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E50#FFFFFF#000000##FFFFFF
##172E501.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3151
Deuteranopia (green-blind)
#172B4F
Tritanopia (blue-blind)
#00363B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172e50;
/* rgb */ color: rgb(23, 46, 80);
/* oklch */ color: oklch(30.2% 0.068 258.1);
Tailwind
colors: {
  custom: {
    50: '#5b6681',
    500: '#172e50',
    950: '#000000',
  },
}
SCSS
$custom: #172e50;
$custom-light: #5b6681;
$custom-dark: #000000;
JSON
{
  "hex": "#172e50",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 80
  },
  "hsl": {
    "h": 215.789,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.30157,
    "c": 0.06842,
    "h": 258.1
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#172E50
secondary
#87693C
accent
#A249DF
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04050A
muted
#797A7C

Preview Lab

Preview with #172E50

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

Preview Lab → · Contrast checker → · Palette generator →

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