#04152F#04152F

#04152F is a very dark, muted blue. Relative luminance 0.008; OKLCH L 19.9% C 0.057 H 257.6°. Best body text is #FFFFFF at 18.21:1 contrast (WCAG AA passes).

Color values

HEX#04152F
RGBrgb(4, 21, 47)
HSLhsl(216, 84%, 10%)
HSVhsv(216, 91%, 18%)
CMYKcmyk(91.5%, 55.3%, 0%, 81.6%)
CIE-LABlab(6.93, 4.17, -19.45)
CIE-LCHlch(6.93, 19.89, 282.10°)
OKLaboklab(19.85% -0.0123 -0.0561)
OKLCHoklch(19.85% 0.057 257.6)
XYZxyz(0.8311, 0.7673, 2.7931)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04152F #2F1E04
analogous
#042B2F #04152F #08042F
triadic
#04152F #2F0415 #152F04
tetradic
#04152F #2F042B #2F1E04 #042F08
square
#04152F #2F042B #2F1E04 #042F08
split-complementary
#04152F #2F0804 #2B2F04
monochromatic
#020D1C #020D1C #04152F #092E67 #0E47A0

Accessibility & contrast

On white

18.21
#04152F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04152F
18.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04152F#FFFFFF#000000##FFFFFF
##04152F1.0018.211.1518.21
#FFFFFF18.211.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071830
Deuteranopia (green-blind)
#01132E
Tritanopia (blue-blind)
#001B1F
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #04152f;
/* rgb */ color: rgb(4, 21, 47);
/* oklch */ color: oklch(19.9% 0.057 257.6);
Tailwind
colors: {
  custom: {
    50: '#4b5167',
    500: '#04152f',
    950: '#000000',
  },
}
SCSS
$custom: #04152f;
$custom-light: #4b5167;
$custom-dark: #000000;
JSON
{
  "hex": "#04152f",
  "rgb": {
    "r": 4,
    "g": 21,
    "b": 47
  },
  "hsl": {
    "h": 216.279,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.19852,
    "c": 0.05739,
    "h": 257.6
  },
  "luminance": 0.00767
}

Semantic roles & 50–950 ramp

primary
#04152F
secondary
#72501D
accent
#A92DFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #04152F

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

Preview Lab → · Contrast checker → · Palette generator →

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