HEX atlas value

#313F31

#313F31 is a cool green HEX color close to Onyx. According to Colors Encyclopedia, it converts to RGB 49, 63, 49, HSL 120, 13%, 22%, has luminance 0.0443, and belongs to the dark and earth tone groups.

#313F31 Sample readable text
HEX #313F31
RGB rgb(49, 63, 49)
HSL hsl(120 13% 22%)
CMYK cmyk(22, 0, 22, 75)
Luminance 0.0443
Contrast Black 1.89:1White 11.13:1

CSS

--color-313f31: #313F31;
.background-313f31 { background-color: #313F31; }
.text-313f31 { color: #313F31; }

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.0443
Black text1.89:1AA Fail
White text11.13: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":"#313F31","rgb":[49,63,49],"hsl":[120,13,22],"cmyk":[22,0,22,75],"luminance":0.0443,"contrast":{"black":1.89,"white":11.13}}
WCAG
{"AA":["#FFFFFF","#F5F5F5"],"AAA":["#FFFFFF","#F5F5F5"]}
Safe pairings
[{"name":"Black text","hex":"#000000","contrast":1.89,"wcagAA":false,"wcagAAA":false},{"name":"White text","hex":"#FFFFFF","contrast":11.13,"wcagAA":true,"wcagAAA":true}]
Accessible alternatives
[{"name":"#090C09","hex":"#090C09","family":"green","bestTextColor":"#FFFFFF","contrastBlack":1.07,"contrastWhite":19.66,"wcagAA":["#FFFFFF","#F5F5F5"],"wcagAAA":["#FFFFFF","#F5F5F5"]},{"name":"Charcoal Blue","hex":"#263238","family":"blue","bestTextColor":"#FFFFFF","contrastBlack":1.6,"contrastWhite":13.16,"wcagAA":["#FFFFFF","#F5F5F5"],"wcagAAA":["#FFFFFF","#F5F5F5"]},{"name":"Gunmetal","hex":"#2A3439","family":"blue","bestTextColor":"#FFFFFF","contrastBlack":1.65,"contrastWhite":12.74,"wcagAA":["#FFFFFF","#F5F5F5"],"wcagAAA":["#FFFFFF","#F5F5F5"]},{"name":"Jet","hex":"#343434","family":"gray","bestTextColor":"#FFFFFF","contrastBlack":1.69,"contrastWhite":12.46,"wcagAA":["#FFFFFF","#F5F5F5"],"wcagAAA":["#FFFFFF","#F5F5F5"]},{"name":"#3F313F","hex":"#3F313F","family":"pink","bestTextColor":"#FFFFFF","contrastBlack":1.72,"contrastWhite":12.2,"wcagAA":["#FFFFFF","#F5F5F5"],"wcagAAA":["#FFFFFF","#F5F5F5"]}]
AI context
{"semanticGroups":["cool green","dark","earth tone","dark green","earth tone green","Onyx adjacent"],"useCases":["color conversion","WCAG contrast checks","CSS color tokens","natural palettes","dark theme accents","botanical and wellness palettes"],"contrastSafeWith":["#FFFFFF","#F5F5F5"],"relatedEndpoints":["https://www.colorsencyclopedia.com/api/hex/313f31.json","https://www.colorsencyclopedia.com/api/hex.json","https://www.colorsencyclopedia.com/api/colors/onyx.json","https://www.colorsencyclopedia.com/api/colors/jet.json","https://www.colorsencyclopedia.com/api/colors/graphite.json"]}
Harmonies
{"complementary":"#3F313F","analogous":["#383F31","#313F38"],"triadic":["#31313F","#3F3131"],"tetradic":["#31383F","#3F313F","#3F3831"],"splitComplementary":["#38313F","#3F3138"],"monochromatic":["#597359","#313F31","#090C09"]}
Variants
{"light":"#597359","dark":"#090C09","saturated":"#244C24","desaturated":"#383838","pastel":"#787878","neon":"#009900"}
Nearest named colors
[{"slug":"onyx","name":"Onyx","hex":"#353839","distance":11.357816691600547},{"slug":"jet","name":"Jet","hex":"#343434","distance":11.789826122551595},{"slug":"graphite","name":"Graphite","hex":"#383838","distance":12.12435565298214},{"slug":"gunmetal","name":"Gunmetal","hex":"#2A3439","distance":15.297058540778355},{"slug":"charcoal-blue","name":"Charcoal Blue","hex":"#263238","distance":18.411952639521967}]

HEX meaning and use

About #313F31

#313F31 is classified as a cool green value with dark and earth tone visual character. #313F31 is visually closest to Onyx, a named gray color with HEX #353839.

The RGB channels are 49, 63, and 49, with green carrying the strongest channel weight. In HSL, the hue is 120deg with 13% saturation and 22% lightness, so this page treats it as a low-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 natural palettes. Its luminance is 0.0443, white text provides the stronger contrast for readable interface or documentation use, and Its nearest named-color distance is 11.36, which helps separate this atlas value from adjacent named color records.

WCAG Accessibility

Black text1.89:1AA Fail
White text11.13:1AA Pass

AA text options: #FFFFFF, #F5F5F5.

AAA text options: #FFFFFF, #F5F5F5.

Accessibility-Safe Pairings and Alternatives

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

Black text#0000001.89:1 · Fail
White text#FFFFFF11.13:1 · AAA

Accessible Alternatives

#090C09#FFFFFF text · best 19.66:1#090C09
Charcoal Blue#FFFFFF text · best 13.16:1#263238
Gunmetal#FFFFFF text · best 12.74:1#2A3439
Jet#FFFFFF text · best 12.46:1#343434
#3F313F#FFFFFF text · best 12.2:1#3F313F

Generated Palette

#313F31#313F31
#3F313F#3F313F
#383F31#383F31
#313F38#313F38
#597359#597359
#090C09#090C09

Color Harmonies

#3F313F#3F313F
#383F31#383F31
#313F38#313F38
#31313F#31313F
#3F3131#3F3131

Variants

#597359#597359
#090C09#090C09
#244C24#244C24
Graphite#383838
#787878#787878
#009900#009900

Nearest Named Colors