#304B11#304B11

#304B11 is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.8% C 0.090 H 131.3°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#304B11
RGBrgb(48, 75, 17)
HSLhsl(88, 63%, 18%)
HSVhsv(88, 77%, 29%)
CMYKcmyk(36%, 0%, 77.3%, 70.6%)
CIE-LABlab(28.64, -20.93, 29.80)
CIE-LCHlch(28.64, 36.42, 125.07°)
OKLaboklab(37.78% -0.0591 0.0673)
OKLCHoklch(37.78% 0.09 131.3)
XYZxyz(3.8361, 5.7009, 1.4285)
Luminance0.0570 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304B11 #2C114B
analogous
#4B4911 #304B11 #134B11
triadic
#304B11 #11304B #4B1130
tetradic
#304B11 #114B49 #2C114B #4B1113
square
#304B11 #114B49 #2C114B #4B1113
split-complementary
#304B11 #11134B #49114B
monochromatic
#101906 #101906 #304B11 #507D1C #70AF28

Accessibility & contrast

On white

9.81
#304B11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#304B11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304B11
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304B11#FFFFFF#000000##FFFFFF
##304B111.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4508
Deuteranopia (green-blind)
#4B4316
Tritanopia (blue-blind)
#314840
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #304b11;
/* rgb */ color: rgb(48, 75, 17);
/* oklch */ color: oklch(37.8% 0.090 131.3);
Tailwind
colors: {
  custom: {
    50: '#6b7d53',
    500: '#304b11',
    950: '#000000',
  },
}
SCSS
$custom: #304b11;
$custom-light: #6b7d53;
$custom-dark: #000000;
JSON
{
  "hex": "#304b11",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 17
  },
  "hsl": {
    "h": 87.931,
    "s": 63.043,
    "l": 18.039
  },
  "oklch": {
    "l": 0.3778,
    "c": 0.0896,
    "h": 131.3
  },
  "luminance": 0.05701
}

Semantic roles & 50–950 ramp

primary
#304B11
secondary
#593384
accent
#42E68E
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304B11

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

Preview Lab → · Contrast checker → · Palette generator →

#304B11 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva