#05040E#05040E

#05040E is a very dark, muted blue. Relative luminance 0.002; OKLCH L 11.7% C 0.026 H 288.0°. Best body text is #FFFFFF at 20.38:1 contrast (WCAG AA passes).

Color values

HEX#05040E
RGBrgb(5, 4, 14)
HSLhsl(246, 56%, 4%)
HSVhsv(246, 71%, 5%)
CMYKcmyk(64.3%, 71.4%, 0%, 94.5%)
CIE-LABlab(1.36, 1.72, -3.87)
CIE-LCHlch(1.36, 4.23, 293.91°)
OKLaboklab(11.67% 0.008 -0.0248)
OKLCHoklch(11.67% 0.026 288)
XYZxyz(0.1852, 0.1508, 0.4347)
Luminance0.0015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05040E #0D0E04
analogous
#04080E #05040E #0A040E
triadic
#05040E #0E0504 #040E05
tetradic
#05040E #0E0408 #0D0E04 #040E0A
square
#05040E #0E0408 #0D0E04 #040E0A
split-complementary
#05040E #0E0A04 #080E04
monochromatic
#080718 #080718 #080718 #16123E #271F6D

Accessibility & contrast

On white

20.38
#05040E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#05040E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05040E
20.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05040E#FFFFFF#000000##FFFFFF
##05040E1.0020.381.0320.38
#FFFFFF20.381.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02050E
Deuteranopia (green-blind)
#02050E
Tritanopia (blue-blind)
#030507
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #05040e;
/* rgb */ color: rgb(5, 4, 14);
/* oklch */ color: oklch(11.7% 0.026 288.0);
Tailwind
colors: {
  custom: {
    50: '#49484d',
    500: '#05040e',
    950: '#000000',
  },
}
SCSS
$custom: #05040e;
$custom-light: #49484d;
$custom-dark: #000000;
JSON
{
  "hex": "#05040e",
  "rgb": {
    "r": 5,
    "g": 4,
    "b": 14
  },
  "hsl": {
    "h": 246,
    "s": 55.556,
    "l": 3.529
  },
  "oklch": {
    "l": 0.1167,
    "c": 0.02607,
    "h": 288
  },
  "luminance": 0.00151
}

Semantic roles & 50–950 ramp

primary
#05040E
secondary
#484C22
accent
#DF49D0
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #05040E

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

Preview Lab → · Contrast checker → · Palette generator →

#05040E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva