#2B951F#2B951F

#2B951F is a mid, vivid green. Relative luminance 0.221; OKLCH L 58.8% C 0.179 H 141.7°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#2B951F
RGBrgb(43, 149, 31)
HSLhsl(114, 66%, 35%)
HSVhsv(114, 79%, 58%)
CMYKcmyk(71.1%, 0%, 79.2%, 41.6%)
CIE-LABlab(54.14, -51.56, 49.64)
CIE-LCHlch(54.14, 71.57, 136.09°)
OKLaboklab(58.77% -0.1406 0.111)
OKLCHoklch(58.77% 0.179 141.7)
XYZxyz(11.9904, 22.1061, 4.9311)
Luminance0.2211 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B951F #891F95
analogous
#66951F #2B951F #1F954E
triadic
#2B951F #1F2B95 #951F2B
tetradic
#2B951F #1F6695 #891F95 #954E1F
square
#2B951F #1F6695 #891F95 #954E1F
split-complementary
#2B951F #4E1F95 #951F66
monochromatic
#0E300A #1C6214 #2B951F #3AC82A #61DB53

Accessibility & contrast

On white

3.87
#2B951F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#2B951F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2B951F
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B951F#FFFFFF#000000##000000
##2B951F1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#8D7E2D
Tritanopia (blue-blind)
#0F907F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #2b951f;
/* rgb */ color: rgb(43, 149, 31);
/* oklch */ color: oklch(58.8% 0.179 141.7);
Tailwind
colors: {
  custom: {
    50: '#75b564',
    500: '#2b951f',
    950: '#000000',
  },
}
SCSS
$custom: #2b951f;
$custom-light: #75b564;
$custom-dark: #000000;
JSON
{
  "hex": "#2b951f",
  "rgb": {
    "r": 43,
    "g": 149,
    "b": 31
  },
  "hsl": {
    "h": 113.898,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58774,
    "c": 0.17912,
    "h": 141.7
  },
  "luminance": 0.22107
}

Semantic roles & 50–950 ramp

primary
#2B951F
secondary
#B351BF
accent
#3FE9D7
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #2B951F

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

Preview Lab → · Contrast checker → · Palette generator →

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