#040307#040307

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

Color values

HEX#040307
RGBrgb(4, 3, 7)
HSLhsl(255, 40%, 2%)
HSVhsv(255, 57%, 3%)
CMYKcmyk(42.9%, 57.1%, 0%, 97.3%)
CIE-LABlab(0.96, 0.82, -1.42)
CIE-LCHlch(0.96, 1.64, 299.92°)
OKLaboklab(10.33% 0.0068 -0.0129)
OKLCHoklch(10.33% 0.015 297.6)
XYZxyz(0.1210, 0.1063, 0.2151)
Luminance0.0011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040307 #060703
analogous
#030407 #040307 #060307
triadic
#040307 #070403 #030704
tetradic
#040307 #070304 #060703 #030706
square
#040307 #070304 #060703 #030706
split-complementary
#040307 #070603 #040703
monochromatic
#0C0915 #0C0915 #0C0915 #1C1532 #35285D

Accessibility & contrast

On white

20.56
#040307 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040307
20.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040307#FFFFFF#000000##FFFFFF
##0403071.0020.561.0220.56
#FFFFFF20.561.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040307;
/* rgb */ color: rgb(4, 3, 7);
/* oklch */ color: oklch(10.3% 0.015 297.6);
Tailwind
colors: {
  custom: {
    50: '#48484a',
    500: '#040307',
    950: '#000000',
  },
}
SCSS
$custom: #040307;
$custom-light: #48484a;
$custom-dark: #000000;
JSON
{
  "hex": "#040307",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 7
  },
  "hsl": {
    "h": 255,
    "s": 40,
    "l": 1.961
  },
  "oklch": {
    "l": 0.10328,
    "c": 0.01461,
    "h": 297.6
  },
  "luminance": 0.00106
}

Semantic roles & 50–950 ramp

primary
#040307
secondary
#3A4125
accent
#D058B2
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #040307

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

Preview Lab → · Contrast checker → · Palette generator →

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