#172E4F#172E4F

#172E4F is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.1% C 0.067 H 257.6°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#172E4F
RGBrgb(23, 46, 79)
HSLhsl(215, 55%, 20%)
HSVhsv(215, 71%, 31%)
CMYKcmyk(70.9%, 41.8%, 0%, 69%)
CIE-LABlab(18.80, 3.32, -22.96)
CIE-LCHlch(18.80, 23.20, 278.24°)
OKLaboklab(30.09% -0.0144 -0.0653)
OKLCHoklch(30.09% 0.067 257.6)
XYZxyz(2.7411, 2.7004, 7.7724)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E4F #4F3817
analogous
#174A4F #172E4F #1C174F
triadic
#172E4F #4F172E #2E4F17
tetradic
#172E4F #4F174A #4F3817 #174F1C
square
#172E4F #4F174A #4F3817 #174F1C
split-complementary
#172E4F #4F1C17 #4A4F17
monochromatic
#070E18 #091220 #172E4F #254A7E #3365AE

Accessibility & contrast

On white

13.63
#172E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172E4F
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E4F#FFFFFF#000000##FFFFFF
##172E4F1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3150
Deuteranopia (green-blind)
#172B4E
Tritanopia (blue-blind)
#00363A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172e4f;
/* rgb */ color: rgb(23, 46, 79);
/* oklch */ color: oklch(30.1% 0.067 257.6);
Tailwind
colors: {
  custom: {
    50: '#5b6680',
    500: '#172e4f',
    950: '#000000',
  },
}
SCSS
$custom: #172e4f;
$custom-light: #5b6680;
$custom-dark: #000000;
JSON
{
  "hex": "#172e4f",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 79
  },
  "hsl": {
    "h": 215.357,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.30087,
    "c": 0.06683,
    "h": 257.6
  },
  "luminance": 0.02701
}

Semantic roles & 50–950 ramp

primary
#172E4F
secondary
#86683C
accent
#A14ADE
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04050A
muted
#797A7C

Preview Lab

Preview with #172E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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