#314A18#314A18

#314A18 is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.6% C 0.081 H 131.7°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#314A18
RGBrgb(49, 74, 24)
HSLhsl(90, 51%, 19%)
HSVhsv(90, 68%, 29%)
CMYKcmyk(33.8%, 0%, 67.6%, 71%)
CIE-LABlab(28.42, -19.31, 26.18)
CIE-LCHlch(28.42, 32.53, 126.42°)
OKLaboklab(37.64% -0.0541 0.0607)
OKLCHoklch(37.64% 0.081 131.7)
XYZxyz(3.8802, 5.6163, 1.7436)
Luminance0.0562 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314A18 #31184A
analogous
#4A4A18 #314A18 #184A18
triadic
#314A18 #18314A #4A1831
tetradic
#314A18 #184A4A #31184A #4A1818
square
#314A18 #184A4A #31184A #4A1818
split-complementary
#314A18 #18184A #4A184A
monochromatic
#0F1707 #121C09 #314A18 #507827 #6EA636

Accessibility & contrast

On white

9.89
#314A18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#314A18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314A18
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314A18#FFFFFF#000000##FFFFFF
##314A181.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4412
Deuteranopia (green-blind)
#4A421C
Tritanopia (blue-blind)
#32473F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #314a18;
/* rgb */ color: rgb(49, 74, 24);
/* oklch */ color: oklch(37.6% 0.081 131.7);
Tailwind
colors: {
  custom: {
    50: '#6b7c57',
    500: '#314a18',
    950: '#000000',
  },
}
SCSS
$custom: #314a18;
$custom-light: #6b7c57;
$custom-dark: #000000;
JSON
{
  "hex": "#314a18",
  "rgb": {
    "r": 49,
    "g": 74,
    "b": 24
  },
  "hsl": {
    "h": 90,
    "s": 51.02,
    "l": 19.216
  },
  "oklch": {
    "l": 0.37638,
    "c": 0.08133,
    "h": 131.7
  },
  "luminance": 0.05616
}

Semantic roles & 50–950 ramp

primary
#314A18
secondary
#5F3D81
accent
#4DDA94
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #314A18

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

Preview Lab → · Contrast checker → · Palette generator →

#314A18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva