#31510F#31510F
#31510F is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.6% C 0.099 H 132.3°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).
Color values
| HEX | #31510F |
|---|---|
| RGB | rgb(49, 81, 15) |
| HSL | hsl(89, 69%, 19%) |
| HSV | hsv(89, 81%, 32%) |
| CMYK | cmyk(39.5%, 0%, 81.5%, 68.2%) |
| CIE-LAB | lab(30.81, -23.68, 32.83) |
| CIE-LCH | lch(30.81, 40.48, 125.81°) |
| OKLab | oklab(39.56% -0.0668 0.0733) |
| OKLCH | oklch(39.56% 0.099 132.3) |
| XYZ | xyz(4.2952, 6.5721, 1.4941) |
| Luminance | 0.0657 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Navy Green
#35530A
ΔE00 1.48
Dark Olive Green
#3C4D03
ΔE00 4.52
Forest Green
#2D5A27
ΔE00 5.42
Forrest Green
#154406
ΔE00 5.57
Forest
#0B5509
ΔE00 5.60
Bottle Green
#044A05
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31510F #2F0F51
analogous
#51500F #31510F #10510F
triadic
#31510F #0F3151 #510F31
tetradic
#31510F #0F5150 #2F0F51 #510F10
square
#31510F #0F5150 #2F0F51 #510F10
split-complementary
#31510F #0F1051 #500F51
monochromatic
#101A05 #121D05 #31510F #508519 #6FB822
Accessibility & contrast
On white
9.07
#31510F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.31
#31510F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31510F
9.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31510F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31510F | 1.00 | 9.07 | 2.31 | 9.07 |
| #FFFFFF | 9.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#554A03
Deuteranopia (green-blind)
#504816
Tritanopia (blue-blind)
#324D44
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #31510f; /* rgb */ color: rgb(49, 81, 15); /* oklch */ color: oklch(39.6% 0.099 132.3);
Tailwind
colors: {
custom: {
50: '#6c8253',
500: '#31510f',
950: '#000000',
},
}SCSS
$custom: #31510f; $custom-light: #6c8253; $custom-dark: #000000;
JSON
{
"hex": "#31510f",
"rgb": {
"r": 49,
"g": 81,
"b": 15
},
"hsl": {
"h": 89.091,
"s": 68.75,
"l": 18.824
},
"oklch": {
"l": 0.3956,
"c": 0.09921,
"h": 132.3
},
"luminance": 0.06572
}Semantic roles & 50–950 ramp
primary
#31510F
secondary
#5D318B
accent
#3CEC91
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A03
muted
#7A7C78