#306317#306317

#306317 is a dark, moderate green. Relative luminance 0.096; OKLCH L 44.8% C 0.120 H 137.4°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#306317
RGBrgb(48, 99, 23)
HSLhsl(100, 62%, 24%)
HSVhsv(100, 77%, 39%)
CMYKcmyk(51.5%, 0%, 76.8%, 61.2%)
CIE-LABlab(37.14, -31.80, 35.87)
CIE-LCHlch(37.14, 47.94, 131.56°)
OKLaboklab(44.75% -0.0881 0.081)
OKLCHoklch(44.75% 0.12 137.4)
XYZxyz(5.8352, 9.6135, 2.3586)
Luminance0.0961 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306317 #4A1763
analogous
#566317 #306317 #176324
triadic
#306317 #173063 #631730
tetradic
#306317 #175663 #4A1763 #632417
square
#306317 #175663 #4A1763 #632417
split-complementary
#306317 #241763 #631756
monochromatic
#0C1906 #18310B #306317 #489523 #60C62E

Accessibility & contrast

On white

7.18
#306317 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#306317 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #306317
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306317#FFFFFF#000000##FFFFFF
##3063171.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665A0A
Deuteranopia (green-blind)
#60561E
Tritanopia (blue-blind)
#2D5F54
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #306317;
/* rgb */ color: rgb(48, 99, 23);
/* oklch */ color: oklch(44.8% 0.120 137.4);
Tailwind
colors: {
  custom: {
    50: '#6e9059',
    500: '#306317',
    950: '#000000',
  },
}
SCSS
$custom: #306317;
$custom-light: #6e9059;
$custom-dark: #000000;
JSON
{
  "hex": "#306317",
  "rgb": {
    "r": 48,
    "g": 99,
    "b": 23
  },
  "hsl": {
    "h": 100.263,
    "s": 62.295,
    "l": 23.922
  },
  "oklch": {
    "l": 0.4475,
    "c": 0.11967,
    "h": 137.4
  },
  "luminance": 0.09614
}

Semantic roles & 50–950 ramp

primary
#306317
secondary
#7B3C9A
accent
#42E5B0
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #306317

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

Preview Lab → · Contrast checker → · Palette generator →

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