#304B15#304B15

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

Color values

HEX#304B15
RGBrgb(48, 75, 21)
HSLhsl(90, 56%, 19%)
HSVhsv(90, 72%, 29%)
CMYKcmyk(36%, 0%, 72%, 70.6%)
CIE-LABlab(28.68, -20.57, 27.96)
CIE-LCHlch(28.68, 34.71, 126.34°)
OKLaboklab(37.82% -0.0577 0.0641)
OKLCHoklch(37.82% 0.086 132)
XYZxyz(3.8703, 5.7145, 1.6084)
Luminance0.0571 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304B15 #30154B
analogous
#4B4B15 #304B15 #154B15
triadic
#304B15 #15304B #4B1530
tetradic
#304B15 #154B4B #30154B #4B1515
square
#304B15 #154B4B #30154B #4B1515
split-complementary
#304B15 #15154B #4B154B
monochromatic
#0F1807 #111B08 #304B15 #4F7B22 #6DAB30

Accessibility & contrast

On white

9.80
#304B15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304B15
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304B15#FFFFFF#000000##FFFFFF
##304B151.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304b15;
/* rgb */ color: rgb(48, 75, 21);
/* oklch */ color: oklch(37.8% 0.086 132.0);
Tailwind
colors: {
  custom: {
    50: '#6b7d55',
    500: '#304b15',
    950: '#000000',
  },
}
SCSS
$custom: #304b15;
$custom-light: #6b7d55;
$custom-dark: #000000;
JSON
{
  "hex": "#304b15",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 21
  },
  "hsl": {
    "h": 90,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.37821,
    "c": 0.08629,
    "h": 132
  },
  "luminance": 0.05715
}

Semantic roles & 50–950 ramp

primary
#304B15
secondary
#5E3983
accent
#48E094
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #304B15

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

Preview Lab → · Contrast checker → · Palette generator →

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