#314F0F#314F0F

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

Color values

HEX#314F0F
RGBrgb(49, 79, 15)
HSLhsl(88, 68%, 18%)
HSVhsv(88, 81%, 31%)
CMYKcmyk(38%, 0%, 81%, 69%)
CIE-LABlab(30.11, -22.69, 32.14)
CIE-LCHlch(30.11, 39.34, 125.22°)
OKLaboklab(38.98% -0.0641 0.0719)
OKLCHoklch(38.98% 0.096 131.7)
XYZxyz(4.1488, 6.2793, 1.4453)
Luminance0.0628 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F0F #2D0F4F
analogous
#4F4D0F #314F0F #114F0F
triadic
#314F0F #0F314F #4F0F31
tetradic
#314F0F #0F4F4D #2D0F4F #4F0F11
square
#314F0F #0F4F4D #2D0F4F #4F0F11
split-complementary
#314F0F #0F114F #4D0F4F
monochromatic
#101A05 #111C05 #314F0F #518219 #71B623

Accessibility & contrast

On white

9.31
#314F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#314F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314F0F
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F0F#FFFFFF#000000##FFFFFF
##314F0F1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #314f0f;
/* rgb */ color: rgb(49, 79, 15);
/* oklch */ color: oklch(39.0% 0.096 131.7);
Tailwind
colors: {
  custom: {
    50: '#6c8053',
    500: '#314f0f',
    950: '#000000',
  },
}
SCSS
$custom: #314f0f;
$custom-light: #6c8053;
$custom-dark: #000000;
JSON
{
  "hex": "#314f0f",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 15
  },
  "hsl": {
    "h": 88.125,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.38984,
    "c": 0.09633,
    "h": 131.7
  },
  "luminance": 0.06279
}

Semantic roles & 50–950 ramp

primary
#314F0F
secondary
#5A3189
accent
#3DEB8E
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #314F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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