#04061D#04061D

#04061D is a very dark, muted blue. Relative luminance 0.002; OKLCH L 13.8% C 0.050 H 272.4°. Best body text is #FFFFFF at 20.02:1 contrast (WCAG AA passes).

Color values

HEX#04061D
RGBrgb(4, 6, 29)
HSLhsl(235, 76%, 6%)
HSVhsv(235, 86%, 11%)
CMYKcmyk(86.2%, 79.3%, 0%, 88.6%)
CIE-LABlab(2.21, 4.27, -13.01)
CIE-LCHlch(2.21, 13.69, 288.19°)
OKLaboklab(13.82% 0.0022 -0.0503)
OKLCHoklch(13.82% 0.05 272.4)
XYZxyz(0.3369, 0.2447, 1.1916)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04061D #1D1B04
analogous
#04131D #04061D #0F041D
triadic
#04061D #1D0406 #061D04
tetradic
#04061D #1D0413 #1D1B04 #041D0F
square
#04061D #1D0413 #1D1B04 #041D0F
split-complementary
#04061D #1D0F04 #131D04
monochromatic
#04061B #04061B #04061D #0B1153 #131C89

Accessibility & contrast

On white

20.02
#04061D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#04061D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04061D
20.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04061D#FFFFFF#000000##FFFFFF
##04061D1.0020.021.0520.02
#FFFFFF20.021.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00091E
Deuteranopia (green-blind)
#00071D
Tritanopia (blue-blind)
#000B10
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #04061d;
/* rgb */ color: rgb(4, 6, 29);
/* oklch */ color: oklch(13.8% 0.050 272.4);
Tailwind
colors: {
  custom: {
    50: '#484958',
    500: '#04061d',
    950: '#000000',
  },
}
SCSS
$custom: #04061d;
$custom-light: #484958;
$custom-dark: #000000;
JSON
{
  "hex": "#04061d",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 29
  },
  "hsl": {
    "h": 235.2,
    "s": 75.758,
    "l": 6.471
  },
  "oklch": {
    "l": 0.13824,
    "c": 0.05031,
    "h": 272.4
  },
  "luminance": 0.00245
}

Semantic roles & 50–950 ramp

primary
#04061D
secondary
#5F5A1D
accent
#E335F2
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000003
muted
#777778

Preview Lab

Preview with #04061D

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

Preview Lab → · Contrast checker → · Palette generator →

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