#2B5F12#2B5F12

#2B5F12 is a dark, vivid green. Relative luminance 0.087; OKLCH L 43.3% C 0.120 H 137.7°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#2B5F12
RGBrgb(43, 95, 18)
HSLhsl(101, 68%, 22%)
HSVhsv(101, 81%, 37%)
CMYKcmyk(54.7%, 0%, 81.1%, 62.7%)
CIE-LABlab(35.48, -32.12, 36.12)
CIE-LCHlch(35.48, 48.34, 131.65°)
OKLaboklab(43.31% -0.0889 0.0808)
OKLCHoklch(43.31% 0.12 137.7)
XYZxyz(5.1975, 8.7413, 1.9855)
Luminance0.0874 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5F12 #46125F
analogous
#525F12 #2B5F12 #125F1F
triadic
#2B5F12 #122B5F #5F122B
tetradic
#2B5F12 #12525F #46125F #5F1F12
square
#2B5F12 #12525F #46125F #5F1F12
split-complementary
#2B5F12 #1F125F #5F1252
monochromatic
#0C1A05 #142C08 #2B5F12 #42921C #5AC625

Accessibility & contrast

On white

7.64
#2B5F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2B5F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5F12
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5F12#FFFFFF#000000##FFFFFF
##2B5F121.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625603
Deuteranopia (green-blind)
#5C521A
Tritanopia (blue-blind)
#275B50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2b5f12;
/* rgb */ color: rgb(43, 95, 18);
/* oklch */ color: oklch(43.3% 0.120 137.7);
Tailwind
colors: {
  custom: {
    50: '#6b8d56',
    500: '#2b5f12',
    950: '#000000',
  },
}
SCSS
$custom: #2b5f12;
$custom-light: #6b8d56;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5f12",
  "rgb": {
    "r": 43,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 100.519,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.43314,
    "c": 0.12016,
    "h": 137.7
  },
  "luminance": 0.08742
}

Semantic roles & 50–950 ramp

primary
#2B5F12
secondary
#783697
accent
#3DEBB2
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2B5F12

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

Preview Lab → · Contrast checker → · Palette generator →

#2B5F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva