#30040C#30040C

#30040C is a very dark, moderate red. Relative luminance 0.007; OKLCH L 20.4% C 0.071 H 15.1°. Best body text is #FFFFFF at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#30040C
RGBrgb(48, 4, 12)
HSLhsl(349, 85%, 10%)
HSVhsv(349, 92%, 19%)
CMYKcmyk(0%, 91.7%, 75%, 81.2%)
CIE-LABlab(6.70, 22.60, 5.53)
CIE-LCHlch(6.70, 23.26, 13.76°)
OKLaboklab(20.41% 0.0687 0.0185)
OKLCHoklch(20.41% 0.071 15.1)
XYZxyz(1.3288, 0.7420, 0.4210)
Luminance0.0074 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30040C #043028
analogous
#300422 #30040C #301204
triadic
#30040C #0C3004 #040C30
tetradic
#30040C #223004 #043028 #120430
square
#30040C #223004 #043028 #120430
split-complementary
#30040C #043012 #042230
monochromatic
#1C0207 #1C0207 #30040C #68091A #A10D28

Accessibility & contrast

On white

18.29
#30040C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#30040C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30040C
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30040C#FFFFFF#000000##FFFFFF
##30040C1.0018.291.1518.29
#FFFFFF18.291.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#100F0C
Deuteranopia (green-blind)
#1B180B
Tritanopia (blue-blind)
#360007
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #30040c;
/* rgb */ color: rgb(48, 4, 12);
/* oklch */ color: oklch(20.4% 0.071 15.1);
Tailwind
colors: {
  custom: {
    50: '#6c484c',
    500: '#30040c',
    950: '#000000',
  },
}
SCSS
$custom: #30040c;
$custom-light: #6c484c;
$custom-dark: #000000;
JSON
{
  "hex": "#30040c",
  "rgb": {
    "r": 48,
    "g": 4,
    "b": 12
  },
  "hsl": {
    "h": 349.091,
    "s": 84.615,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20405,
    "c": 0.07118,
    "h": 15.1
  },
  "luminance": 0.00742
}

Semantic roles & 50–950 ramp

primary
#30040C
secondary
#1D7263
accent
#FBD52D
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #30040C

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

Preview Lab → · Contrast checker → · Palette generator →

#30040C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva