#050308#050308

#050308 is a very dark, near-neutral violet. Relative luminance 0.001; OKLCH L 10.6% C 0.018 H 305.2°. Best body text is #FFFFFF at 20.53:1 contrast (WCAG AA passes).

Color values

HEX#050308
RGBrgb(5, 3, 8)
HSLhsl(264, 45%, 2%)
HSVhsv(264, 63%, 3%)
CMYKcmyk(37.5%, 62.5%, 0%, 96.9%)
CIE-LABlab(1.04, 1.22, -1.71)
CIE-LCHlch(1.04, 2.10, 305.55°)
OKLaboklab(10.65% 0.0102 -0.0145)
OKLCHoklch(10.65% 0.018 305.2)
XYZxyz(0.1390, 0.1149, 0.2445)
Luminance0.0011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050308 #060803
analogous
#030408 #050308 #080308
triadic
#050308 #080503 #030805
tetradic
#050308 #080304 #060803 #030808
square
#050308 #080304 #060803 #030808
split-complementary
#050308 #080803 #040803
monochromatic
#0E0816 #0E0816 #0E0816 #211435 #3D2461

Accessibility & contrast

On white

20.53
#050308 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.02
#050308 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050308
20.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050308#FFFFFF#000000##FFFFFF
##0503081.0020.531.0220.53
#FFFFFF20.531.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#020408
Deuteranopia (green-blind)
#030408
Tritanopia (blue-blind)
#050405
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #050308;
/* rgb */ color: rgb(5, 3, 8);
/* oklch */ color: oklch(10.6% 0.018 305.2);
Tailwind
colors: {
  custom: {
    50: '#49484a',
    500: '#050308',
    950: '#000000',
  },
}
SCSS
$custom: #050308;
$custom-light: #49484a;
$custom-dark: #000000;
JSON
{
  "hex": "#050308",
  "rgb": {
    "r": 5,
    "g": 3,
    "b": 8
  },
  "hsl": {
    "h": 264,
    "s": 45.455,
    "l": 2.157
  },
  "oklch": {
    "l": 0.10648,
    "c": 0.01773,
    "h": 305.2
  },
  "luminance": 0.00115
}

Semantic roles & 50–950 ramp

primary
#050308
secondary
#374423
accent
#D553A1
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #050308

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

Preview Lab → · Contrast checker → · Palette generator →

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