#0C4D1F#0C4D1F
#0C4D1F is a dark, moderate green. Relative luminance 0.055; OKLCH L 37.0% C 0.098 H 148.2°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).
Color values
| HEX | #0C4D1F |
|---|---|
| RGB | rgb(12, 77, 31) |
| HSL | hsl(138, 73%, 17%) |
| HSV | hsv(138, 84%, 30%) |
| CMYK | cmyk(84.4%, 0%, 59.7%, 69.8%) |
| CIE-LAB | lab(28.07, -31.04, 21.57) |
| CIE-LCH | lch(28.07, 37.79, 145.21°) |
| OKLab | oklab(36.96% -0.0834 0.0517) |
| OKLCH | oklch(36.96% 0.098 148.2) |
| XYZ | xyz(3.0526, 5.4845, 2.1938) |
| Luminance | 0.0549 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Pine Green
#0A481E
ΔE00 1.72
British Racing Green
#05480D
ΔE00 3.40
Forest Green (survey)
#06470C
ΔE00 3.60
Darkgreen (survey)
#054907
ΔE00 4.31
Bottle Green
#044A05
ΔE00 4.64
Hunter Green (survey)
#0B4008
ΔE00 5.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#0C4D1F #4D0C3A
analogous
#1A4D0C #0C4D1F #0C4D3F
triadic
#0C4D1F #1F0C4D #4D1F0C
tetradic
#0C4D1F #0C1A4D #4D0C3A #4D3F0C
square
#0C4D1F #0C1A4D #4D0C3A #4D3F0C
split-complementary
#0C4D1F #3F0C4D #4D0C1A
monochromatic
#041A0B #041A0B #0C4D1F #148234 #1DB74A
Accessibility & contrast
On white
10.01
#0C4D1F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.10
#0C4D1F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #0C4D1F
10.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##0C4D1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##0C4D1F | 1.00 | 10.01 | 2.10 | 10.01 |
| #FFFFFF | 10.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4E451B
Deuteranopia (green-blind)
#464023
Tritanopia (blue-blind)
#004B43
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #0c4d1f; /* rgb */ color: rgb(12, 77, 31); /* oklch */ color: oklch(37.0% 0.098 148.2);
Tailwind
colors: {
custom: {
50: '#587f5c',
500: '#0c4d1f',
950: '#000000',
},
}SCSS
$custom: #0c4d1f; $custom-light: #587f5c; $custom-dark: #000000;
JSON
{
"hex": "#0c4d1f",
"rgb": {
"r": 12,
"g": 77,
"b": 31
},
"hsl": {
"h": 137.538,
"s": 73.034,
"l": 17.451
},
"oklch": {
"l": 0.36957,
"c": 0.09816,
"h": 148.2
},
"luminance": 0.05485
}Semantic roles & 50–950 ramp
primary
#0C4D1F
secondary
#892C6E
accent
#38BAF0
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A04
muted
#797C79