#226831#226831

#226831 is a mid, moderate green. Relative luminance 0.105; OKLCH L 45.9% C 0.111 H 147.6°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#226831
RGBrgb(34, 104, 49)
HSLhsl(133, 51%, 27%)
HSVhsv(133, 67%, 41%)
CMYKcmyk(67.3%, 0%, 52.9%, 59.2%)
CIE-LABlab(38.66, -34.72, 24.58)
CIE-LCHlch(38.66, 42.54, 144.69°)
OKLaboklab(45.95% -0.0937 0.0596)
OKLCHoklch(45.95% 0.111 147.6)
XYZxyz(6.1639, 10.4618, 4.5996)
Luminance0.1046 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#226831 #682259
analogous
#366822 #226831 #226854
triadic
#226831 #312268 #683122
tetradic
#226831 #223668 #682259 #685422
square
#226831 #223668 #682259 #685422
split-complementary
#226831 #542268 #682236
monochromatic
#08170B #133A1B #226831 #319647 #43C25E

Accessibility & contrast

On white

6.79
#226831 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#226831 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #226831
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##226831#FFFFFF#000000##FFFFFF
##2268311.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695F2C
Deuteranopia (green-blind)
#605935
Tritanopia (blue-blind)
#0D665B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #226831;
/* rgb */ color: rgb(34, 104, 49);
/* oklch */ color: oklch(45.9% 0.111 147.6);
Tailwind
colors: {
  custom: {
    50: '#66946a',
    500: '#226831',
    950: '#000000',
  },
}
SCSS
$custom: #226831;
$custom-light: #66946a;
$custom-dark: #000000;
JSON
{
  "hex": "#226831",
  "rgb": {
    "r": 34,
    "g": 104,
    "b": 49
  },
  "hsl": {
    "h": 132.857,
    "s": 50.725,
    "l": 27.059
  },
  "oklch": {
    "l": 0.45948,
    "c": 0.11105,
    "h": 147.6
  },
  "luminance": 0.10462
}

Semantic roles & 50–950 ramp

primary
#226831
secondary
#9C4A8A
accent
#4EBCDA
background
#F6F9F6
surface
#EBF1EB
border
#C6CBC6
text
#060D06
muted
#7A7E7A

Preview Lab

Preview with #226831

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

Preview Lab → · Contrast checker → · Palette generator →

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