#304B0F#304B0F

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

Color values

HEX#304B0F
RGBrgb(48, 75, 15)
HSLhsl(87, 67%, 18%)
HSVhsv(87, 80%, 29%)
CMYKcmyk(36%, 0%, 80%, 70.6%)
CIE-LABlab(28.63, -21.08, 30.66)
CIE-LCHlch(28.63, 37.21, 124.51°)
OKLaboklab(37.76% -0.0597 0.0688)
OKLCHoklch(37.76% 0.091 130.9)
XYZxyz(3.8212, 5.6949, 1.3497)
Luminance0.0570 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304B0F #2A0F4B
analogous
#4B480F #304B0F #124B0F
triadic
#304B0F #0F304B #4B0F30
tetradic
#304B0F #0F4B48 #2A0F4B #4B0F12
square
#304B0F #0F4B48 #2A0F4B #4B0F12
split-complementary
#304B0F #0F124B #480F4B
monochromatic
#101A05 #101A05 #304B0F #517E19 #71B123

Accessibility & contrast

On white

9.82
#304B0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304B0F
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304B0F#FFFFFF#000000##FFFFFF
##304B0F1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4505
Deuteranopia (green-blind)
#4B4315
Tritanopia (blue-blind)
#31473F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #304b0f;
/* rgb */ color: rgb(48, 75, 15);
/* oklch */ color: oklch(37.8% 0.091 130.9);
Tailwind
colors: {
  custom: {
    50: '#6b7d52',
    500: '#304b0f',
    950: '#000000',
  },
}
SCSS
$custom: #304b0f;
$custom-light: #6b7d52;
$custom-dark: #000000;
JSON
{
  "hex": "#304b0f",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 15
  },
  "hsl": {
    "h": 87,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37762,
    "c": 0.09109,
    "h": 130.9
  },
  "luminance": 0.05695
}

Semantic roles & 50–950 ramp

primary
#304B0F
secondary
#573085
accent
#3EEA8B
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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