#050412#050412

#050412 is a very dark, muted blue. Relative luminance 0.002; OKLCH L 12.0% C 0.034 H 284.6°. Best body text is #FFFFFF at 20.34:1 contrast (WCAG AA passes).

Color values

HEX#050412
RGBrgb(5, 4, 18)
HSLhsl(244, 64%, 4%)
HSVhsv(244, 78%, 7%)
CMYKcmyk(72.2%, 77.8%, 0%, 92.9%)
CIE-LABlab(1.47, 2.48, -5.93)
CIE-LCHlch(1.47, 6.43, 292.65°)
OKLaboklab(12.04% 0.0087 -0.0332)
OKLCHoklch(12.04% 0.034 284.6)
XYZxyz(0.2152, 0.1628, 0.5922)
Luminance0.0016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050412 #111204
analogous
#040A12 #050412 #0C0412
triadic
#050412 #120504 #041205
tetradic
#050412 #12040A #111204 #04120C
square
#050412 #12040A #111204 #04120C
split-complementary
#050412 #120C04 #0A1204
monochromatic
#070619 #070619 #070619 #130F44 #211A76

Accessibility & contrast

On white

20.34
#050412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#050412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050412
20.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050412#FFFFFF#000000##FFFFFF
##0504121.0020.341.0320.34
#FFFFFF20.341.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010613
Deuteranopia (green-blind)
#010512
Tritanopia (blue-blind)
#020609
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #050412;
/* rgb */ color: rgb(5, 4, 18);
/* oklch */ color: oklch(12.0% 0.034 284.6);
Tailwind
colors: {
  custom: {
    50: '#49484f',
    500: '#050412',
    950: '#000000',
  },
}
SCSS
$custom: #050412;
$custom-light: #49484f;
$custom-dark: #000000;
JSON
{
  "hex": "#050412",
  "rgb": {
    "r": 5,
    "g": 4,
    "b": 18
  },
  "hsl": {
    "h": 244.286,
    "s": 63.636,
    "l": 4.314
  },
  "oklch": {
    "l": 0.12039,
    "c": 0.03428,
    "h": 284.6
  },
  "luminance": 0.00163
}

Semantic roles & 50–950 ramp

primary
#050412
secondary
#4F5220
accent
#E741DB
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000002
muted
#777778

Preview Lab

Preview with #050412

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

Preview Lab → · Contrast checker → · Palette generator →

#050412 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva