#050307#050307

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

Color values

HEX#050307
RGBrgb(5, 3, 7)
HSLhsl(270, 40%, 2%)
HSVhsv(270, 57%, 3%)
CMYKcmyk(28.6%, 57.1%, 0%, 97.3%)
CIE-LABlab(1.02, 1.08, -1.33)
CIE-LCHlch(1.02, 1.71, 309.09°)
OKLaboklab(10.56% 0.0098 -0.0118)
OKLCHoklch(10.56% 0.015 309.5)
XYZxyz(0.1335, 0.1127, 0.2157)
Luminance0.0011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050307 #050703
analogous
#030307 #050307 #070307
triadic
#050307 #070503 #030705
tetradic
#050307 #070303 #050703 #030707
square
#050307 #070303 #050703 #030707
split-complementary
#050307 #070703 #030703
monochromatic
#0F0915 #0F0915 #0F0915 #241532 #42285D

Accessibility & contrast

On white

20.54
#050307 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050307
20.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050307#FFFFFF#000000##FFFFFF
##0503071.0020.541.0220.54
#FFFFFF20.541.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#020407
Deuteranopia (green-blind)
#030407
Tritanopia (blue-blind)
#050304
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #050307;
/* rgb */ color: rgb(5, 3, 7);
/* oklch */ color: oklch(10.6% 0.015 309.5);
Tailwind
colors: {
  custom: {
    50: '#49484a',
    500: '#050307',
    950: '#000000',
  },
}
SCSS
$custom: #050307;
$custom-light: #49484a;
$custom-dark: #000000;
JSON
{
  "hex": "#050307",
  "rgb": {
    "r": 5,
    "g": 3,
    "b": 7
  },
  "hsl": {
    "h": 270,
    "s": 40,
    "l": 1.961
  },
  "oklch": {
    "l": 0.10564,
    "c": 0.01532,
    "h": 309.5
  },
  "luminance": 0.00113
}

Semantic roles & 50–950 ramp

primary
#050307
secondary
#334125
accent
#D05894
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #050307

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

Preview Lab → · Contrast checker → · Palette generator →

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