#304107#304107

#304107 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.8% C 0.082 H 125.3°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#304107
RGBrgb(48, 65, 7)
HSLhsl(78, 81%, 14%)
HSVhsv(78, 89%, 25%)
CMYKcmyk(26.2%, 0%, 89.2%, 74.5%)
CIE-LABlab(25.03, -16.28, 30.43)
CIE-LCHlch(25.03, 34.51, 118.14°)
OKLaboklab(34.82% -0.0474 0.0668)
OKLCHoklch(34.82% 0.082 125.3)
XYZxyz(3.1476, 4.4243, 0.8891)
Luminance0.0442 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304107 #180741
analogous
#413507 #304107 #134107
triadic
#304107 #073041 #410730
tetradic
#304107 #074135 #180741 #410713
square
#304107 #074135 #180741 #410713
split-complementary
#304107 #071341 #350741
monochromatic
#141C03 #141C03 #304107 #59780D #82B013

Accessibility & contrast

On white

11.14
#304107 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#304107 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304107
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304107#FFFFFF#000000##FFFFFF
##3041071.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C00
Deuteranopia (green-blind)
#433B0D
Tritanopia (blue-blind)
#333D36
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #304107;
/* rgb */ color: rgb(48, 65, 7);
/* oklch */ color: oklch(34.8% 0.082 125.3);
Tailwind
colors: {
  custom: {
    50: '#6b754c',
    500: '#304107',
    950: '#000000',
  },
}
SCSS
$custom: #304107;
$custom-light: #6b754c;
$custom-dark: #000000;
JSON
{
  "hex": "#304107",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 7
  },
  "hsl": {
    "h": 77.586,
    "s": 80.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.34817,
    "c": 0.08192,
    "h": 125.3
  },
  "luminance": 0.04424
}

Semantic roles & 50–950 ramp

primary
#304107
secondary
#3F2480
accent
#31F76B
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #304107

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

Preview Lab → · Contrast checker → · Palette generator →

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