#04172D#04172D

#04172D is a very dark, muted cyan. Relative luminance 0.008; OKLCH L 20.3% C 0.051 H 253.0°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#04172D
RGBrgb(4, 23, 45)
HSLhsl(212, 84%, 10%)
HSVhsv(212, 91%, 18%)
CMYKcmyk(91.1%, 48.9%, 0%, 82.4%)
CIE-LABlab(7.48, 1.76, -17.10)
CIE-LCHlch(7.48, 17.19, 275.87°)
OKLaboklab(20.26% -0.015 -0.0489)
OKLCHoklch(20.26% 0.051 253)
XYZxyz(0.8299, 0.8280, 2.5982)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04172D #2D1A04
analogous
#042C2D #04172D #06042D
triadic
#04172D #2D0417 #172D04
tetradic
#04172D #2D042C #2D1A04 #042D06
square
#04172D #2D042C #2D1A04 #042D06
split-complementary
#04172D #2D0604 #2C2D04
monochromatic
#020E1C #020E1C #04172D #093465 #0E509D

Accessibility & contrast

On white

18.02
#04172D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04172D
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04172D#FFFFFF#000000##FFFFFF
##04172D1.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C192E
Deuteranopia (green-blind)
#06152D
Tritanopia (blue-blind)
#001C1F
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #04172d;
/* rgb */ color: rgb(4, 23, 45);
/* oklch */ color: oklch(20.3% 0.051 253.0);
Tailwind
colors: {
  custom: {
    50: '#4a5366',
    500: '#04172d',
    950: '#000000',
  },
}
SCSS
$custom: #04172d;
$custom-light: #4a5366;
$custom-dark: #000000;
JSON
{
  "hex": "#04172d",
  "rgb": {
    "r": 4,
    "g": 23,
    "b": 45
  },
  "hsl": {
    "h": 212.195,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.20259,
    "c": 0.05114,
    "h": 253
  },
  "luminance": 0.00828
}

Semantic roles & 50–950 ramp

primary
#04172D
secondary
#70491D
accent
#9B2EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #04172D

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

Preview Lab → · Contrast checker → · Palette generator →

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