#305E1F#305E1F

#305E1F is a dark, moderate green. Relative luminance 0.087; OKLCH L 43.4% C 0.106 H 138.3°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#305E1F
RGBrgb(48, 94, 31)
HSLhsl(104, 50%, 25%)
HSVhsv(104, 67%, 37%)
CMYKcmyk(48.9%, 0%, 67%, 63.1%)
CIE-LABlab(35.46, -28.80, 30.46)
CIE-LCHlch(35.46, 41.92, 133.40°)
OKLaboklab(43.4% -0.0793 0.0707)
OKLCHoklch(43.4% 0.106 138.3)
XYZxyz(5.4688, 8.7324, 2.6934)
Luminance0.0873 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305E1F #4D1F5E
analogous
#505E1F #305E1F #1F5E2E
triadic
#305E1F #1F305E #5E1F30
tetradic
#305E1F #1F505E #4D1F5E #5E2E1F
square
#305E1F #1F505E #4D1F5E #5E2E1F
split-complementary
#305E1F #2E1F5E #5E1F50
monochromatic
#0C1708 #183010 #305E1F #488C2E #5FBA3D

Accessibility & contrast

On white

7.65
#305E1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#305E1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305E1F
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305E1F#FFFFFF#000000##FFFFFF
##305E1F1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615618
Deuteranopia (green-blind)
#5B5224
Tritanopia (blue-blind)
#2D5B51
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #305e1f;
/* rgb */ color: rgb(48, 94, 31);
/* oklch */ color: oklch(43.4% 0.106 138.3);
Tailwind
colors: {
  custom: {
    50: '#6d8c5e',
    500: '#305e1f',
    950: '#000000',
  },
}
SCSS
$custom: #305e1f;
$custom-light: #6d8c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#305e1f",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 31
  },
  "hsl": {
    "h": 103.81,
    "s": 50.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.43397,
    "c": 0.10628,
    "h": 138.3
  },
  "luminance": 0.08733
}

Semantic roles & 50–950 ramp

primary
#305E1F
secondary
#7E4693
accent
#4EDAB4
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #305E1F

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

Preview Lab → · Contrast checker → · Palette generator →

#305E1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva