#305E0F#305E0F

#305E0F is a dark, moderate yellow-green. Relative luminance 0.087; OKLCH L 43.3% C 0.118 H 135.6°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#305E0F
RGBrgb(48, 94, 15)
HSLhsl(95, 72%, 21%)
HSVhsv(95, 84%, 37%)
CMYKcmyk(48.9%, 0%, 84%, 63.1%)
CIE-LABlab(35.34, -30.17, 37.14)
CIE-LCHlch(35.34, 47.85, 129.08°)
OKLaboklab(43.25% -0.0842 0.0824)
OKLCHoklch(43.25% 0.118 135.6)
XYZxyz(5.3077, 8.6679, 1.8452)
Luminance0.0867 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305E0F #3D0F5E
analogous
#585E0F #305E0F #0F5E16
triadic
#305E0F #0F305E #5E0F30
tetradic
#305E0F #0F585E #3D0F5E #5E160F
square
#305E0F #0F585E #3D0F5E #5E160F
split-complementary
#305E0F #160F5E #5E0F58
monochromatic
#0D1A04 #152907 #305E0F #4B9317 #66C820

Accessibility & contrast

On white

7.68
#305E0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#305E0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305E0F
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305E0F#FFFFFF#000000##FFFFFF
##305E0F1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625500
Deuteranopia (green-blind)
#5C5218
Tritanopia (blue-blind)
#2E5A4F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #305e0f;
/* rgb */ color: rgb(48, 94, 15);
/* oklch */ color: oklch(43.3% 0.118 135.6);
Tailwind
colors: {
  custom: {
    50: '#6e8c55',
    500: '#305e0f',
    950: '#000000',
  },
}
SCSS
$custom: #305e0f;
$custom-light: #6e8c55;
$custom-dark: #000000;
JSON
{
  "hex": "#305e0f",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 15
  },
  "hsl": {
    "h": 94.937,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.43252,
    "c": 0.11782,
    "h": 135.6
  },
  "luminance": 0.08668
}

Semantic roles & 50–950 ramp

primary
#305E0F
secondary
#6D3197
accent
#39EFA3
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #305E0F

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

Preview Lab → · Contrast checker → · Palette generator →

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