HEX atlas value

#402F08

#402F08 is a warm orange HEX color close to Espresso. According to Colors Encyclopedia, it converts to RGB 64, 47, 8, HSL 42, 78%, 14%, has luminance 0.0314, and belongs to the dark group.

#402F08 Sample readable text
HEX #402F08
RGB rgb(64, 47, 8)
HSL hsl(42 78% 14%)
CMYK cmyk(0, 27, 88, 75)
Luminance 0.0314
Contrast Black 1.63:1White 12.9:1

CSS

--color-402f08: #402F08;
.background-402f08 { background-color: #402F08; }
.text-402f08 { color: #402F08; }

Machine-readable data

Machine-Readable HEX Data (JSON)

Structured HEX color data for conversion, WCAG checks, CSS generation, automation, and AI ingestion.

AI-Ready Dataset v1.0.0
Luminance0.0314
Black text1.63:1AA Fail
White text12.9:1AA Pass
hexCanonical HEX value
rgbRed, green, blue channels
hslHue, saturation, lightness
cmykApproximate print conversion
wcagAA and AAA contrast options
harmoniesMathematical harmony sets
variantsGenerated tone variants
nearestColorsKnowledge graph neighbors
Download JSON Open API
Structured sections
Color systems
{"hex":"#402F08","rgb":[64,47,8],"hsl":[42,78,14],"cmyk":[0,27,88,75],"luminance":0.0314,"contrast":{"black":1.63,"white":12.9}}
WCAG
{"AA":["#FFFFFF","#F5F5F5"],"AAA":["#FFFFFF","#F5F5F5"]}
Safe pairings
[{"name":"Black text","hex":"#000000","contrast":1.63,"wcagAA":false,"wcagAAA":false},{"name":"White text","hex":"#FFFFFF","contrast":12.9,"wcagAA":true,"wcagAAA":true}]
Accessible alternatives
[{"name":"Black","hex":"#000000","family":"gray","bestTextColor":"#FFFFFF","contrastBlack":1,"contrastWhite":21,"wcagAA":["#FFFFFF","#F5F5F5"],"wcagAAA":["#FFFFFF","#F5F5F5"]},{"name":"#081940","hex":"#081940","family":"blue","bestTextColor":"#FFFFFF","contrastBlack":1.22,"contrastWhite":17.16,"wcagAA":["#FFFFFF","#F5F5F5"],"wcagAAA":["#FFFFFF","#F5F5F5"]},{"name":"#401308","hex":"#401308","family":"red","bestTextColor":"#FFFFFF","contrastBlack":1.31,"contrastWhite":15.98,"wcagAA":["#FFFFFF","#F5F5F5"],"wcagAAA":["#FFFFFF","#F5F5F5"]},{"name":"Rubber","hex":"#2A2725","family":"gray","bestTextColor":"#FFFFFF","contrastBlack":1.42,"contrastWhite":14.83,"wcagAA":["#FFFFFF","#F5F5F5"],"wcagAAA":["#FFFFFF","#F5F5F5"]},{"name":"Asphalt","hex":"#2B2B2B","family":"gray","bestTextColor":"#FFFFFF","contrastBlack":1.48,"contrastWhite":14.15,"wcagAA":["#FFFFFF","#F5F5F5"],"wcagAAA":["#FFFFFF","#F5F5F5"]}]
AI context
{"semanticGroups":["warm orange","dark","dark orange","Espresso adjacent"],"useCases":["color conversion","WCAG contrast checks","CSS color tokens","dark theme accents"],"contrastSafeWith":["#FFFFFF","#F5F5F5"],"relatedEndpoints":["https://www.colorsencyclopedia.com/api/hex/402f08.json","https://www.colorsencyclopedia.com/api/hex.json","https://www.colorsencyclopedia.com/api/colors/espresso.json","https://www.colorsencyclopedia.com/api/colors/pine-bark.json","https://www.colorsencyclopedia.com/api/colors/rubber.json"]}
Harmonies
{"complementary":"#081940","analogous":["#401308","#344008"],"triadic":["#08402F","#2F0840"],"tetradic":["#084013","#081940","#400834"],"splitComplementary":["#083440","#130840"],"monochromatic":["#916B12","#402F08","#000000"]}
Variants
{"light":"#916B12","dark":"#000000","saturated":"#473200","desaturated":"#382C10","pastel":"#A27D25","neon":"#704F00"}
Nearest named colors
[{"slug":"espresso","name":"Espresso","hex":"#4B3621","distance":28.19574435974337},{"slug":"pine-bark","name":"Pine Bark","hex":"#4A3728","distance":34.46737587922817},{"slug":"rubber","name":"Rubber","hex":"#2A2725","distance":37.26929030716845},{"slug":"peat","name":"Peat","hex":"#3B2F2F","distance":39.319206502675},{"slug":"asphalt","name":"Asphalt","hex":"#2B2B2B","distance":41.012193308819754}]

HEX meaning and use

About #402F08

#402F08 is classified as a warm orange value with dark visual character. #402F08 is visually closest to Espresso, a named orange color with HEX #4B3621.

The RGB channels are 64, 47, and 8, with red carrying the strongest channel weight. In HSL, the hue is 42deg with 78% saturation and 14% lightness, so this page treats it as a high-saturation, dark atlas color rather than a generic swatch.

According to Colors Encyclopedia, this HEX value works best for color conversion, WCAG contrast checks, CSS color tokens, and dark theme accents. Its luminance is 0.0314, white text provides the stronger contrast for readable interface or documentation use, and Its nearest named-color distance is 28.20, which helps separate this atlas value from adjacent named color records.

WCAG Accessibility

Black text1.63:1AA Fail
White text12.9:1AA Pass

AA text options: #FFFFFF, #F5F5F5.

AAA text options: #FFFFFF, #F5F5F5.

Accessibility-Safe Pairings and Alternatives

Use these pairings when #402F08 needs readable text, badges, interface states, or nearby accessible alternatives.

Black text#0000001.63:1 · Fail
White text#FFFFFF12.9:1 · AAA

Accessible Alternatives

Black#FFFFFF text · best 21:1#000000
#081940#FFFFFF text · best 17.16:1#081940
#401308#FFFFFF text · best 15.98:1#401308
Rubber#FFFFFF text · best 14.83:1#2A2725
Asphalt#FFFFFF text · best 14.15:1#2B2B2B

Generated Palette

#402F08#402F08
#081940#081940
#401308#401308
#344008#344008
#916B12#916B12
Black#000000

Color Harmonies

#081940#081940
#401308#401308
#344008#344008
#08402F#08402F
#2F0840#2F0840

Variants

#916B12#916B12
Black#000000
#473200#473200
#382C10#382C10
#A27D25#A27D25
#704F00#704F00

Nearest Named Colors