#04142F#04142F

#04142F is a very dark, muted blue. Relative luminance 0.007; OKLCH L 19.6% C 0.059 H 259.0°. Best body text is #FFFFFF at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#04142F
RGBrgb(4, 20, 47)
HSLhsl(218, 84%, 10%)
HSVhsv(218, 91%, 18%)
CMYKcmyk(91.5%, 57.4%, 0%, 81.6%)
CIE-LABlab(6.61, 4.83, -19.97)
CIE-LCHlch(6.61, 20.54, 283.61°)
OKLaboklab(19.57% -0.0112 -0.0578)
OKLCHoklch(19.57% 0.059 259)
XYZxyz(0.8131, 0.7313, 2.7871)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04142F #2F1F04
analogous
#042A2F #04142F #09042F
triadic
#04142F #2F0414 #142F04
tetradic
#04142F #2F042A #2F1F04 #042F09
square
#04142F #2F042A #2F1F04 #042F09
split-complementary
#04142F #2F0904 #2A2F04
monochromatic
#020C1C #020C1C #04142F #092C67 #0E44A0

Accessibility & contrast

On white

18.32
#04142F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#04142F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04142F
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04142F#FFFFFF#000000##FFFFFF
##04142F1.0018.321.1518.32
#FFFFFF18.321.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061730
Deuteranopia (green-blind)
#00132E
Tritanopia (blue-blind)
#001A1F
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #04142f;
/* rgb */ color: rgb(4, 20, 47);
/* oklch */ color: oklch(19.6% 0.059 259.0);
Tailwind
colors: {
  custom: {
    50: '#4b5168',
    500: '#04142f',
    950: '#000000',
  },
}
SCSS
$custom: #04142f;
$custom-light: #4b5168;
$custom-dark: #000000;
JSON
{
  "hex": "#04142f",
  "rgb": {
    "r": 4,
    "g": 20,
    "b": 47
  },
  "hsl": {
    "h": 217.674,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.19572,
    "c": 0.05888,
    "h": 259
  },
  "luminance": 0.00731
}

Semantic roles & 50–950 ramp

primary
#04142F
secondary
#72521D
accent
#AE2DFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #04142F

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

Preview Lab → · Contrast checker → · Palette generator →

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