#172B4E#172B4E

#172B4E is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.2% C 0.069 H 260.8°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#172B4E
RGBrgb(23, 43, 78)
HSLhsl(218, 54%, 20%)
HSVhsv(218, 71%, 31%)
CMYKcmyk(70.5%, 44.9%, 0%, 69.4%)
CIE-LABlab(17.74, 5.09, -23.98)
CIE-LCHlch(17.74, 24.51, 281.98°)
OKLaboklab(29.24% -0.0111 -0.0683)
OKLCHoklch(29.24% 0.069 260.8)
XYZxyz(2.5919, 2.4597, 7.5444)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B4E #4E3A17
analogous
#17464E #172B4E #1F174E
triadic
#172B4E #4E172B #2B4E17
tetradic
#172B4E #4E1746 #4E3A17 #174E1F
square
#172B4E #4E1746 #4E3A17 #174E1F
split-complementary
#172B4E #4E1F17 #464E17
monochromatic
#070D18 #09111F #172B4E #25457D #335FAD

Accessibility & contrast

On white

14.08
#172B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#172B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B4E
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B4E#FFFFFF#000000##FFFFFF
##172B4E1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2E4F
Deuteranopia (green-blind)
#13294D
Tritanopia (blue-blind)
#003338
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172b4e;
/* rgb */ color: rgb(23, 43, 78);
/* oklch */ color: oklch(29.2% 0.069 260.8);
Tailwind
colors: {
  custom: {
    50: '#5b6380',
    500: '#172b4e',
    950: '#000000',
  },
}
SCSS
$custom: #172b4e;
$custom-light: #5b6380;
$custom-dark: #000000;
JSON
{
  "hex": "#172b4e",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 78
  },
  "hsl": {
    "h": 218.182,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29239,
    "c": 0.06918,
    "h": 260.8
  },
  "luminance": 0.0246
}

Semantic roles & 50–950 ramp

primary
#172B4E
secondary
#856A3C
accent
#A84ADE
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #172B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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