#050312#050312

#050312 is a very dark, muted blue. Relative luminance 0.001; OKLCH L 11.6% C 0.038 H 288.0°. Best body text is #FFFFFF at 20.42:1 contrast (WCAG AA passes).

Color values

HEX#050312
RGBrgb(5, 3, 18)
HSLhsl(248, 71%, 4%)
HSVhsv(248, 83%, 7%)
CMYKcmyk(72.2%, 83.3%, 0%, 92.9%)
CIE-LABlab(1.27, 2.88, -6.22)
CIE-LCHlch(1.27, 6.85, 294.80°)
OKLaboklab(11.57% 0.0118 -0.0362)
OKLCHoklch(11.57% 0.038 288)
XYZxyz(0.2043, 0.1411, 0.5886)
Luminance0.0014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050312 #101203
analogous
#030912 #050312 #0D0312
triadic
#050312 #120503 #031205
tetradic
#050312 #120309 #101203 #03120D
square
#050312 #120309 #101203 #03120D
split-complementary
#050312 #120D03 #091203
monochromatic
#07041A #07041A #07041A #140C46 #22147B

Accessibility & contrast

On white

20.42
#050312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050312
20.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050312#FFFFFF#000000##FFFFFF
##0503121.0020.421.0320.42
#FFFFFF20.421.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000513
Deuteranopia (green-blind)
#000412
Tritanopia (blue-blind)
#020508
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #050312;
/* rgb */ color: rgb(5, 3, 18);
/* oklch */ color: oklch(11.6% 0.038 288.0);
Tailwind
colors: {
  custom: {
    50: '#49484f',
    500: '#050312',
    950: '#000000',
  },
}
SCSS
$custom: #050312;
$custom-light: #49484f;
$custom-dark: #000000;
JSON
{
  "hex": "#050312",
  "rgb": {
    "r": 5,
    "g": 3,
    "b": 18
  },
  "hsl": {
    "h": 248,
    "s": 71.429,
    "l": 4.118
  },
  "oklch": {
    "l": 0.11568,
    "c": 0.03806,
    "h": 288
  },
  "luminance": 0.00141
}

Semantic roles & 50–950 ramp

primary
#050312
secondary
#4D551C
accent
#EE3AD6
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000002
muted
#777778

Preview Lab

Preview with #050312

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

Preview Lab → · Contrast checker → · Palette generator →

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