#306828#306828

#306828 is a mid, moderate green. Relative luminance 0.107; OKLCH L 46.4% C 0.113 H 141.2°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#306828
RGBrgb(48, 104, 40)
HSLhsl(113, 44%, 28%)
HSVhsv(113, 62%, 41%)
CMYKcmyk(53.8%, 0%, 61.5%, 59.2%)
CIE-LABlab(39.04, -32.23, 29.98)
CIE-LCHlch(39.04, 44.01, 137.07°)
OKLaboklab(46.36% -0.088 0.0707)
OKLCHoklch(46.36% 0.113 141.2)
XYZxyz(6.5519, 10.6817, 3.7236)
Luminance0.1068 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306828 #602868
analogous
#506828 #306828 #286840
triadic
#306828 #283068 #682830
tetradic
#306828 #285068 #602868 #684028
square
#306828 #285068 #602868 #684028
split-complementary
#306828 #402868 #682850
monochromatic
#0A1609 #1C3C17 #306828 #449439 #5DBB4F

Accessibility & contrast

On white

6.70
#306828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#306828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #306828
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306828#FFFFFF#000000##FFFFFF
##3068281.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5F21
Deuteranopia (green-blind)
#635A2D
Tritanopia (blue-blind)
#2A655A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #306828;
/* rgb */ color: rgb(48, 104, 40);
/* oklch */ color: oklch(46.4% 0.113 141.2);
Tailwind
colors: {
  custom: {
    50: '#6e9464',
    500: '#306828',
    950: '#000000',
  },
}
SCSS
$custom: #306828;
$custom-light: #6e9464;
$custom-dark: #000000;
JSON
{
  "hex": "#306828",
  "rgb": {
    "r": 48,
    "g": 104,
    "b": 40
  },
  "hsl": {
    "h": 112.5,
    "s": 44.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.46363,
    "c": 0.11289,
    "h": 141.2
  },
  "luminance": 0.10682
}

Semantic roles & 50–950 ramp

primary
#306828
secondary
#91519B
accent
#54D4C4
background
#F6F9F6
surface
#ECF1EB
border
#C7CBC6
text
#070D05
muted
#7A7E7A

Preview Lab

Preview with #306828

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

Preview Lab → · Contrast checker → · Palette generator →

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