#04172E#04172E

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

Color values

HEX#04172E
RGBrgb(4, 23, 46)
HSLhsl(213, 84%, 10%)
HSVhsv(213, 91%, 18%)
CMYKcmyk(91.3%, 50%, 0%, 82%)
CIE-LABlab(7.55, 2.25, -17.72)
CIE-LCHlch(7.55, 17.87, 277.24°)
OKLaboklab(20.34% -0.0147 -0.0507)
OKLCHoklch(20.34% 0.053 253.9)
XYZxyz(0.8494, 0.8358, 2.7008)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04172E #2E1B04
analogous
#042C2E #04172E #06042E
triadic
#04172E #2E0417 #172E04
tetradic
#04172E #2E042C #2E1B04 #042E06
square
#04172E #2E042C #2E1B04 #042E06
split-complementary
#04172E #2E0604 #2C2E04
monochromatic
#020E1C #020E1C #04172E #093366 #0E4F9F

Accessibility & contrast

On white

17.99
#04172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04172E
17.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04172E#FFFFFF#000000##FFFFFF
##04172E1.0017.991.1717.99
#FFFFFF17.991.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C192F
Deuteranopia (green-blind)
#05152E
Tritanopia (blue-blind)
#001C20
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #04172e;
/* rgb */ color: rgb(4, 23, 46);
/* oklch */ color: oklch(20.3% 0.053 253.9);
Tailwind
colors: {
  custom: {
    50: '#4b5367',
    500: '#04172e',
    950: '#000000',
  },
}
SCSS
$custom: #04172e;
$custom-light: #4b5367;
$custom-dark: #000000;
JSON
{
  "hex": "#04172e",
  "rgb": {
    "r": 4,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 212.857,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.2034,
    "c": 0.0528,
    "h": 253.9
  },
  "luminance": 0.00836
}

Semantic roles & 50–950 ramp

primary
#04172E
secondary
#714B1D
accent
#9E2EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #04172E

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

Preview Lab → · Contrast checker → · Palette generator →

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