#314F0C#314F0C

#314F0C is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 39.0% C 0.098 H 131.4°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#314F0C
RGBrgb(49, 79, 12)
HSLhsl(87, 74%, 18%)
HSVhsv(87, 85%, 31%)
CMYKcmyk(38%, 0%, 84.8%, 69%)
CIE-LABlab(30.09, -22.88, 33.28)
CIE-LCHlch(30.09, 40.39, 124.52°)
OKLaboklab(38.96% -0.0649 0.0737)
OKLCHoklch(38.96% 0.098 131.4)
XYZxyz(4.1289, 6.2713, 1.3407)
Luminance0.0627 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F0C #2A0C4F
analogous
#4F4B0C #314F0C #0F4F0C
triadic
#314F0C #0C314F #4F0C31
tetradic
#314F0C #0C4F4B #2A0C4F #4F0C0F
square
#314F0C #0C4F4B #2A0C4F #4F0C0F
split-complementary
#314F0C #0C0F4F #4B0C4F
monochromatic
#101B04 #101B04 #314F0C #528414 #73B91C

Accessibility & contrast

On white

9.32
#314F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#314F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314F0C
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F0C#FFFFFF#000000##FFFFFF
##314F0C1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534800
Deuteranopia (green-blind)
#4F4613
Tritanopia (blue-blind)
#324B43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #314f0c;
/* rgb */ color: rgb(49, 79, 12);
/* oklch */ color: oklch(39.0% 0.098 131.4);
Tailwind
colors: {
  custom: {
    50: '#6c8051',
    500: '#314f0c',
    950: '#000000',
  },
}
SCSS
$custom: #314f0c;
$custom-light: #6c8051;
$custom-dark: #000000;
JSON
{
  "hex": "#314f0c",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 12
  },
  "hsl": {
    "h": 86.866,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.38961,
    "c": 0.09823,
    "h": 131.4
  },
  "luminance": 0.06271
}

Semantic roles & 50–950 ramp

primary
#314F0C
secondary
#562C8B
accent
#38F08A
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #314F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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