#050820#050820

#050820 is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.9% C 0.051 H 271.8°. Best body text is #FFFFFF at 19.77:1 contrast (WCAG AA passes).

Color values

HEX#050820
RGBrgb(5, 8, 32)
HSLhsl(233, 73%, 7%)
HSVhsv(233, 84%, 13%)
CMYKcmyk(84.4%, 75%, 0%, 87.5%)
CIE-LABlab(2.80, 4.72, -14.49)
CIE-LCHlch(2.80, 15.24, 288.04°)
OKLaboklab(14.91% 0.0016 -0.051)
OKLCHoklch(14.91% 0.051 271.8)
XYZxyz(0.4100, 0.3102, 1.4045)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050820 #201D05
analogous
#051620 #050820 #100520
triadic
#050820 #200508 #082005
tetradic
#050820 #200516 #201D05 #052010
square
#050820 #200516 #201D05 #052010
split-complementary
#050820 #201005 #162005
monochromatic
#04071A #04071A #050820 #0D1555 #16228A

Accessibility & contrast

On white

19.77
#050820 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#050820 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050820
19.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050820#FFFFFF#000000##FFFFFF
##0508201.0019.771.0619.77
#FFFFFF19.771.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C21
Deuteranopia (green-blind)
#000920
Tritanopia (blue-blind)
#000E12
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #050820;
/* rgb */ color: rgb(5, 8, 32);
/* oklch */ color: oklch(14.9% 0.051 271.8);
Tailwind
colors: {
  custom: {
    50: '#484a5b',
    500: '#050820',
    950: '#000000',
  },
}
SCSS
$custom: #050820;
$custom-light: #484a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#050820",
  "rgb": {
    "r": 5,
    "g": 8,
    "b": 32
  },
  "hsl": {
    "h": 233.333,
    "s": 72.973,
    "l": 7.255
  },
  "oklch": {
    "l": 0.14911,
    "c": 0.05104,
    "h": 271.8
  },
  "luminance": 0.0031
}

Semantic roles & 50–950 ramp

primary
#050820
secondary
#615A20
accent
#DB38F0
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #050820

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

Preview Lab → · Contrast checker → · Palette generator →

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