#2A581C#2A581C

#2A581C is a dark, moderate green. Relative luminance 0.076; OKLCH L 41.3% C 0.103 H 139.1°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#2A581C
RGBrgb(42, 88, 28)
HSLhsl(106, 52%, 23%)
HSVhsv(106, 68%, 35%)
CMYKcmyk(52.3%, 0%, 68.2%, 65.5%)
CIE-LABlab(33.04, -28.45, 29.17)
CIE-LCHlch(33.04, 40.75, 134.28°)
OKLaboklab(41.32% -0.0782 0.0677)
OKLCHoklch(41.32% 0.103 139.1)
XYZxyz(4.6540, 7.5552, 2.3114)
Luminance0.0756 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A581C #4A1C58
analogous
#48581C #2A581C #1C582C
triadic
#2A581C #1C2A58 #581C2A
tetradic
#2A581C #1C4858 #4A1C58 #582C1C
square
#2A581C #1C4858 #4A1C58 #582C1C
split-complementary
#2A581C #2C1C58 #581C48
monochromatic
#0B1707 #142A0D #2A581C #40862B #56B53A

Accessibility & contrast

On white

8.36
#2A581C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2A581C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A581C
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A581C#FFFFFF#000000##FFFFFF
##2A581C1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5015
Deuteranopia (green-blind)
#554C21
Tritanopia (blue-blind)
#26554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a581c;
/* rgb */ color: rgb(42, 88, 28);
/* oklch */ color: oklch(41.3% 0.103 139.1);
Tailwind
colors: {
  custom: {
    50: '#68875b',
    500: '#2a581c',
    950: '#000000',
  },
}
SCSS
$custom: #2a581c;
$custom-light: #68875b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a581c",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 28
  },
  "hsl": {
    "h": 106,
    "s": 51.724,
    "l": 22.745
  },
  "oklch": {
    "l": 0.4132,
    "c": 0.10343,
    "h": 139.1
  },
  "luminance": 0.07556
}

Semantic roles & 50–950 ramp

primary
#2A581C
secondary
#7C428E
accent
#4DDBBA
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #2A581C

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

Preview Lab → · Contrast checker → · Palette generator →

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