#30040F#30040F

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

Color values

HEX#30040F
RGBrgb(48, 4, 15)
HSLhsl(345, 85%, 10%)
HSVhsv(345, 92%, 19%)
CMYKcmyk(0%, 91.7%, 68.7%, 81.2%)
CIE-LABlab(6.77, 22.89, 4.16)
CIE-LCHlch(6.77, 23.26, 10.30°)
OKLaboklab(20.49% 0.0702 0.0134)
OKLCHoklch(20.49% 0.071 10.8)
XYZxyz(1.3487, 0.7499, 0.5256)
Luminance0.0075 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30040F #043025
analogous
#300425 #30040F #300F04
triadic
#30040F #0F3004 #040F30
tetradic
#30040F #253004 #043025 #0F0430
square
#30040F #253004 #043025 #0F0430
split-complementary
#30040F #04300F #042530
monochromatic
#1C0209 #1C0209 #30040F #680921 #A10D32

Accessibility & contrast

On white

18.26
#30040F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30040F
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30040F#FFFFFF#000000##FFFFFF
##30040F1.0018.261.1518.26
#FFFFFF18.261.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F0F0F
Deuteranopia (green-blind)
#1B180E
Tritanopia (blue-blind)
#350008
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #30040f;
/* rgb */ color: rgb(48, 4, 15);
/* oklch */ color: oklch(20.5% 0.071 10.8);
Tailwind
colors: {
  custom: {
    50: '#6c484e',
    500: '#30040f',
    950: '#000000',
  },
}
SCSS
$custom: #30040f;
$custom-light: #6c484e;
$custom-dark: #000000;
JSON
{
  "hex": "#30040f",
  "rgb": {
    "r": 48,
    "g": 4,
    "b": 15
  },
  "hsl": {
    "h": 345,
    "s": 84.615,
    "l": 10.196
  },
  "oklch": {
    "l": 0.2049,
    "c": 0.07149,
    "h": 10.8
  },
  "luminance": 0.0075
}

Semantic roles & 50–950 ramp

primary
#30040F
secondary
#1D725D
accent
#FBC72D
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #30040F

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

Preview Lab → · Contrast checker → · Palette generator →

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