#172F4E#172F4E

#172F4E is a dark, moderate cyan. Relative luminance 0.028; OKLCH L 30.3% C 0.064 H 255.6°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#172F4E
RGBrgb(23, 47, 78)
HSLhsl(214, 54%, 20%)
HSVhsv(214, 71%, 31%)
CMYKcmyk(70.5%, 39.7%, 0%, 69.4%)
CIE-LABlab(19.08, 2.20, -21.85)
CIE-LCHlch(19.08, 21.96, 275.75°)
OKLaboklab(30.28% -0.0159 -0.062)
OKLCHoklch(30.28% 0.064 255.6)
XYZxyz(2.7445, 2.7650, 7.5953)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F4E #4E3617
analogous
#174B4E #172F4E #1B174E
triadic
#172F4E #4E172F #2F4E17
tetradic
#172F4E #4E174B #4E3617 #174E1B
square
#172F4E #4E174B #4E3617 #174E1B
split-complementary
#172F4E #4E1B17 #4B4E17
monochromatic
#070E18 #09131F #172F4E #254B7D #3368AD

Accessibility & contrast

On white

13.52
#172F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#172F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F4E
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F4E#FFFFFF#000000##FFFFFF
##172F4E1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22314F
Deuteranopia (green-blind)
#1A2C4D
Tritanopia (blue-blind)
#00363A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172f4e;
/* rgb */ color: rgb(23, 47, 78);
/* oklch */ color: oklch(30.3% 0.064 255.6);
Tailwind
colors: {
  custom: {
    50: '#5b6780',
    500: '#172f4e',
    950: '#000000',
  },
}
SCSS
$custom: #172f4e;
$custom-light: #5b6780;
$custom-dark: #000000;
JSON
{
  "hex": "#172f4e",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 78
  },
  "hsl": {
    "h": 213.818,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.30282,
    "c": 0.06401,
    "h": 255.6
  },
  "luminance": 0.02765
}

Semantic roles & 50–950 ramp

primary
#172F4E
secondary
#85653C
accent
#9D4ADE
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04060A
muted
#797A7C

Preview Lab

Preview with #172F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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