#226240#226240

#226240 is a dark, moderate green. Relative luminance 0.094; OKLCH L 44.5% C 0.086 H 156.8°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#226240
RGBrgb(34, 98, 64)
HSLhsl(148, 48%, 26%)
HSVhsv(148, 65%, 38%)
CMYKcmyk(65.3%, 0%, 34.7%, 61.6%)
CIE-LABlab(36.83, -29.15, 13.49)
CIE-LCHlch(36.83, 32.12, 155.17°)
OKLaboklab(44.53% -0.0793 0.0341)
OKLCHoklch(44.53% 0.086 156.8)
XYZxyz(5.9523, 9.4450, 6.3589)
Luminance0.0945 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#226240 #622244
analogous
#246222 #226240 #226260
triadic
#226240 #402262 #624022
tetradic
#226240 #222462 #622244 #626022
square
#226240 #222462 #622244 #626022
split-complementary
#226240 #602262 #622224
monochromatic
#08170F #123522 #226240 #328F5E #42BD7B

Accessibility & contrast

On white

7.27
#226240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#226240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #226240
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##226240#FFFFFF#000000##FFFFFF
##2262401.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615A3E
Deuteranopia (green-blind)
#595442
Tritanopia (blue-blind)
#056159
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #226240;
/* rgb */ color: rgb(34, 98, 64);
/* oklch */ color: oklch(44.5% 0.086 156.8);
Tailwind
colors: {
  custom: {
    50: '#658f75',
    500: '#226240',
    950: '#000000',
  },
}
SCSS
$custom: #226240;
$custom-light: #658f75;
$custom-dark: #000000;
JSON
{
  "hex": "#226240",
  "rgb": {
    "r": 34,
    "g": 98,
    "b": 64
  },
  "hsl": {
    "h": 148.125,
    "s": 48.485,
    "l": 25.882
  },
  "oklch": {
    "l": 0.4453,
    "c": 0.0863,
    "h": 156.8
  },
  "luminance": 0.09446
}

Semantic roles & 50–950 ramp

primary
#226240
secondary
#964A72
accent
#5098D8
background
#F6F8F7
surface
#EBF0ED
border
#C6CBC8
text
#060C08
muted
#7A7D7B

Preview Lab

Preview with #226240

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

Preview Lab → · Contrast checker → · Palette generator →

#226240 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva