#050C1F#050C1F

#050C1F is a very dark, muted blue. Relative luminance 0.004; OKLCH L 15.9% C 0.042 H 264.8°. Best body text is #FFFFFF at 19.47:1 contrast (WCAG AA passes).

Color values

HEX#050C1F
RGBrgb(5, 12, 31)
HSLhsl(224, 72%, 7%)
HSVhsv(224, 84%, 12%)
CMYKcmyk(83.9%, 61.3%, 0%, 87.8%)
CIE-LABlab(3.56, 2.73, -12.55)
CIE-LCHlch(3.56, 12.85, 282.28°)
OKLaboklab(15.95% -0.0038 -0.042)
OKLCHoklch(15.95% 0.042 264.8)
XYZxyz(0.4413, 0.3941, 1.3489)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050C1F #1F1805
analogous
#05191F #050C1F #0B051F
triadic
#050C1F #1F050C #0C1F05
tetradic
#050C1F #1F0519 #1F1805 #051F0B
square
#050C1F #1F0519 #1F1805 #051F0B
split-complementary
#050C1F #1F0B05 #191F05
monochromatic
#040A1A #040A1A #050C1F #0E2054 #163588

Accessibility & contrast

On white

19.47
#050C1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#050C1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050C1F
19.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050C1F#FFFFFF#000000##FFFFFF
##050C1F1.0019.471.0819.47
#FFFFFF19.471.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#040E20
Deuteranopia (green-blind)
#020C1F
Tritanopia (blue-blind)
#001013
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #050c1f;
/* rgb */ color: rgb(5, 12, 31);
/* oklch */ color: oklch(15.9% 0.042 264.8);
Tailwind
colors: {
  custom: {
    50: '#484c5a',
    500: '#050c1f',
    950: '#000000',
  },
}
SCSS
$custom: #050c1f;
$custom-light: #484c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#050c1f",
  "rgb": {
    "r": 5,
    "g": 12,
    "b": 31
  },
  "hsl": {
    "h": 223.846,
    "s": 72.222,
    "l": 7.059
  },
  "oklch": {
    "l": 0.15948,
    "c": 0.04213,
    "h": 264.8
  },
  "luminance": 0.00394
}

Semantic roles & 50–950 ramp

primary
#050C1F
secondary
#604F20
accent
#BE39EF
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #050C1F

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

Preview Lab → · Contrast checker → · Palette generator →

#050C1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva