#304111#304111

#304111 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.9% C 0.074 H 126.7°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#304111
RGBrgb(48, 65, 17)
HSLhsl(81, 59%, 16%)
HSVhsv(81, 74%, 25%)
CMYKcmyk(26.2%, 0%, 73.8%, 74.5%)
CIE-LABlab(25.10, -15.55, 26.12)
CIE-LCHlch(25.10, 30.40, 120.77°)
OKLaboklab(34.91% -0.0444 0.0596)
OKLCHoklch(34.91% 0.074 126.7)
XYZxyz(3.2104, 4.4494, 1.2199)
Luminance0.0445 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304111 #221141
analogous
#413A11 #304111 #184111
triadic
#304111 #113041 #411130
tetradic
#304111 #11413A #221141 #411118
square
#304111 #11413A #221141 #411118
split-complementary
#304111 #111841 #3A1141
monochromatic
#121806 #121806 #304111 #54721E #78A22A

Accessibility & contrast

On white

11.11
#304111 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#304111 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304111
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304111#FFFFFF#000000##FFFFFF
##3041111.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C0B
Deuteranopia (green-blind)
#423B15
Tritanopia (blue-blind)
#323E37
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #304111;
/* rgb */ color: rgb(48, 65, 17);
/* oklch */ color: oklch(34.9% 0.074 126.7);
Tailwind
colors: {
  custom: {
    50: '#6a7552',
    500: '#304111',
    950: '#000000',
  },
}
SCSS
$custom: #304111;
$custom-light: #6a7552;
$custom-dark: #000000;
JSON
{
  "hex": "#304111",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 17
  },
  "hsl": {
    "h": 81.25,
    "s": 58.537,
    "l": 16.078
  },
  "oklch": {
    "l": 0.34905,
    "c": 0.07431,
    "h": 126.7
  },
  "luminance": 0.04449
}

Semantic roles & 50–950 ramp

primary
#304111
secondary
#4D337B
accent
#46E27D
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #304111

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

Preview Lab → · Contrast checker → · Palette generator →

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