#04061C#04061C

#04061C is a very dark, muted blue. Relative luminance 0.002; OKLCH L 13.7% C 0.048 H 272.5°. Best body text is #FFFFFF at 20.04:1 contrast (WCAG AA passes).

Color values

HEX#04061C
RGBrgb(4, 6, 28)
HSLhsl(235, 75%, 6%)
HSVhsv(235, 86%, 11%)
CMYKcmyk(85.7%, 78.6%, 0%, 89%)
CIE-LABlab(2.17, 3.96, -12.27)
CIE-LCHlch(2.17, 12.90, 287.89°)
OKLaboklab(13.71% 0.0022 -0.0484)
OKLCHoklch(13.71% 0.048 272.5)
XYZxyz(0.3247, 0.2399, 1.1276)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04061C #1C1A04
analogous
#04121C #04061C #0E041C
triadic
#04061C #1C0406 #061C04
tetradic
#04061C #1C0412 #1C1A04 #041C0E
square
#04061C #1C0412 #1C1A04 #041C0E
split-complementary
#04061C #1C0E04 #121C04
monochromatic
#04061B #04061B #04061C #0C1152 #131D87

Accessibility & contrast

On white

20.04
#04061C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04061C
20.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04061C#FFFFFF#000000##FFFFFF
##04061C1.0020.041.0520.04
#FFFFFF20.041.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04061c;
/* rgb */ color: rgb(4, 6, 28);
/* oklch */ color: oklch(13.7% 0.048 272.5);
Tailwind
colors: {
  custom: {
    50: '#484958',
    500: '#04061c',
    950: '#000000',
  },
}
SCSS
$custom: #04061c;
$custom-light: #484958;
$custom-dark: #000000;
JSON
{
  "hex": "#04061c",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 28
  },
  "hsl": {
    "h": 235,
    "s": 75,
    "l": 6.275
  },
  "oklch": {
    "l": 0.13714,
    "c": 0.04846,
    "h": 272.5
  },
  "luminance": 0.0024
}

Semantic roles & 50–950 ramp

primary
#04061C
secondary
#5E591D
accent
#E236F2
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000003
muted
#777778

Preview Lab

Preview with #04061C

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

Preview Lab → · Contrast checker → · Palette generator →

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