#05040F#05040F

#05040F is a very dark, muted blue. Relative luminance 0.002; OKLCH L 11.8% C 0.028 H 287.0°. Best body text is #FFFFFF at 20.37:1 contrast (WCAG AA passes).

Color values

HEX#05040F
RGBrgb(5, 4, 15)
HSLhsl(245, 58%, 4%)
HSVhsv(245, 73%, 6%)
CMYKcmyk(66.7%, 73.3%, 0%, 94.1%)
CIE-LABlab(1.39, 1.89, -4.35)
CIE-LCHlch(1.39, 4.74, 293.51°)
OKLaboklab(11.76% 0.0083 -0.0269)
OKLCHoklch(11.76% 0.028 287)
XYZxyz(0.1922, 0.1536, 0.4714)
Luminance0.0015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05040F #0E0F04
analogous
#04080F #05040F #0A040F
triadic
#05040F #0F0504 #040F05
tetradic
#05040F #0F0408 #0E0F04 #040F0A
square
#05040F #0F0408 #0E0F04 #040F0A
split-complementary
#05040F #0F0A04 #080F04
monochromatic
#080618 #080618 #080618 #15113F #251E70

Accessibility & contrast

On white

20.37
#05040F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05040F
20.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05040F#FFFFFF#000000##FFFFFF
##05040F1.0020.371.0320.37
#FFFFFF20.371.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #05040f;
/* rgb */ color: rgb(5, 4, 15);
/* oklch */ color: oklch(11.8% 0.028 287.0);
Tailwind
colors: {
  custom: {
    50: '#49484e',
    500: '#05040f',
    950: '#000000',
  },
}
SCSS
$custom: #05040f;
$custom-light: #49484e;
$custom-dark: #000000;
JSON
{
  "hex": "#05040f",
  "rgb": {
    "r": 5,
    "g": 4,
    "b": 15
  },
  "hsl": {
    "h": 245.455,
    "s": 57.895,
    "l": 3.725
  },
  "oklch": {
    "l": 0.11758,
    "c": 0.02817,
    "h": 287
  },
  "luminance": 0.00154
}

Semantic roles & 50–950 ramp

primary
#05040F
secondary
#4A4E21
accent
#E147D3
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #05040F

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

Preview Lab → · Contrast checker → · Palette generator →

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