#04172F#04172F

#04172F is a very dark, muted cyan. Relative luminance 0.008; OKLCH L 20.4% C 0.054 H 254.7°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#04172F
RGBrgb(4, 23, 47)
HSLhsl(213, 84%, 10%)
HSVhsv(213, 91%, 18%)
CMYKcmyk(91.5%, 51.1%, 0%, 81.6%)
CIE-LABlab(7.62, 2.75, -18.35)
CIE-LCHlch(7.62, 18.55, 278.53°)
OKLaboklab(20.42% -0.0144 -0.0525)
OKLCHoklch(20.42% 0.054 254.7)
XYZxyz(0.8694, 0.8437, 2.8058)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04172F #2F1C04
analogous
#042D2F #04172F #06042F
triadic
#04172F #2F0417 #172F04
tetradic
#04172F #2F042D #2F1C04 #042F06
square
#04172F #2F042D #2F1C04 #042F06
split-complementary
#04172F #2F0604 #2D2F04
monochromatic
#020E1C #020E1C #04172F #093367 #0E4EA0

Accessibility & contrast

On white

17.97
#04172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#04172F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04172F
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04172F#FFFFFF#000000##FFFFFF
##04172F1.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1930
Deuteranopia (green-blind)
#04152F
Tritanopia (blue-blind)
#001D20
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #04172f;
/* rgb */ color: rgb(4, 23, 47);
/* oklch */ color: oklch(20.4% 0.054 254.7);
Tailwind
colors: {
  custom: {
    50: '#4b5367',
    500: '#04172f',
    950: '#000000',
  },
}
SCSS
$custom: #04172f;
$custom-light: #4b5367;
$custom-dark: #000000;
JSON
{
  "hex": "#04172f",
  "rgb": {
    "r": 4,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 213.488,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.20423,
    "c": 0.05448,
    "h": 254.7
  },
  "luminance": 0.00844
}

Semantic roles & 50–950 ramp

primary
#04172F
secondary
#724C1D
accent
#A02DFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #04172F

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

Preview Lab → · Contrast checker → · Palette generator →

#04172F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva