#304117#304117

#304117 is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 35.0% C 0.068 H 128.0°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#304117
RGBrgb(48, 65, 23)
HSLhsl(84, 48%, 17%)
HSVhsv(84, 65%, 25%)
CMYKcmyk(26.2%, 0%, 64.6%, 74.5%)
CIE-LABlab(25.17, -14.94, 23.02)
CIE-LCHlch(25.17, 27.45, 122.98°)
OKLaboklab(34.98% -0.042 0.0539)
OKLCHoklch(34.98% 0.068 128)
XYZxyz(3.2639, 4.4708, 1.5014)
Luminance0.0447 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304117 #281741
analogous
#413D17 #304117 #1B4117
triadic
#304117 #173041 #411730
tetradic
#304117 #17413D #281741 #41171B
square
#304117 #17413D #281741 #41171B
split-complementary
#304117 #171B41 #3D1741
monochromatic
#111708 #111708 #304117 #516E27 #739B37

Accessibility & contrast

On white

11.09
#304117 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304117
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304117#FFFFFF#000000##FFFFFF
##3041171.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443C13
Deuteranopia (green-blind)
#423B1A
Tritanopia (blue-blind)
#323E38
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #304117;
/* rgb */ color: rgb(48, 65, 23);
/* oklch */ color: oklch(35.0% 0.068 128.0);
Tailwind
colors: {
  custom: {
    50: '#6a7556',
    500: '#304117',
    950: '#000000',
  },
}
SCSS
$custom: #304117;
$custom-light: #6a7556;
$custom-dark: #000000;
JSON
{
  "hex": "#304117",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 23
  },
  "hsl": {
    "h": 84.286,
    "s": 47.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.34979,
    "c": 0.06835,
    "h": 128
  },
  "luminance": 0.04471
}

Semantic roles & 50–950 ramp

primary
#304117
secondary
#543C78
accent
#50D787
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #304117

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

Preview Lab → · Contrast checker → · Palette generator →

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