#04050F#04050F

#04050F is a very dark, muted blue. Relative luminance 0.002; OKLCH L 12.0% C 0.025 H 275.7°. Best body text is #FFFFFF at 20.31:1 contrast (WCAG AA passes).

Color values

HEX#04050F
RGBrgb(4, 5, 15)
HSLhsl(235, 58%, 4%)
HSVhsv(235, 73%, 6%)
CMYKcmyk(73.3%, 66.7%, 0%, 94.1%)
CIE-LABlab(1.52, 1.23, -4.16)
CIE-LCHlch(1.52, 4.34, 286.50°)
OKLaboklab(12.04% 0.0025 -0.025)
OKLCHoklch(12.04% 0.025 275.7)
XYZxyz(0.1905, 0.1688, 0.4744)
Luminance0.0017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04050F #0F0E04
analogous
#040A0F #04050F #08040F
triadic
#04050F #0F0405 #050F04
tetradic
#04050F #0F040A #0F0E04 #040F08
square
#04050F #0F040A #0F0E04 #040F08
split-complementary
#04050F #0F0804 #0A0F04
monochromatic
#060818 #060818 #060818 #11153F #1E2570

Accessibility & contrast

On white

20.31
#04050F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#04050F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04050F
20.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04050F#FFFFFF#000000##FFFFFF
##04050F1.0020.311.0320.31
#FFFFFF20.311.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03060F
Deuteranopia (green-blind)
#02050F
Tritanopia (blue-blind)
#020708
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #04050f;
/* rgb */ color: rgb(4, 5, 15);
/* oklch */ color: oklch(12.0% 0.025 275.7);
Tailwind
colors: {
  custom: {
    50: '#48494e',
    500: '#04050f',
    950: '#000000',
  },
}
SCSS
$custom: #04050f;
$custom-light: #48494e;
$custom-dark: #000000;
JSON
{
  "hex": "#04050f",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 15
  },
  "hsl": {
    "h": 234.545,
    "s": 57.895,
    "l": 3.725
  },
  "oklch": {
    "l": 0.12039,
    "c": 0.02514,
    "h": 275.7
  },
  "luminance": 0.00169
}

Semantic roles & 50–950 ramp

primary
#04050F
secondary
#4E4A21
accent
#D347E1
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #04050F

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

Preview Lab → · Contrast checker → · Palette generator →

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