#313F0C#313F0C

#313F0C is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.4% C 0.075 H 123.8°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#313F0C
RGBrgb(49, 63, 12)
HSLhsl(76, 68%, 15%)
HSVhsv(76, 81%, 25%)
CMYKcmyk(22.2%, 0%, 81%, 75.3%)
CIE-LABlab(24.43, -14.34, 27.81)
CIE-LCHlch(24.43, 31.29, 117.28°)
OKLaboklab(34.37% -0.0417 0.0623)
OKLCHoklch(34.37% 0.075 123.8)
XYZxyz(3.1105, 4.2345, 1.0012)
Luminance0.0423 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F0C #1A0C3F
analogous
#3F340C #313F0C #173F0C
triadic
#313F0C #0C313F #3F0C31
tetradic
#313F0C #0C3F34 #1A0C3F #3F0C17
square
#313F0C #0C3F34 #1A0C3F #3F0C17
split-complementary
#313F0C #0C173F #340C3F
monochromatic
#141A05 #141A05 #313F0C #597216 #81A620

Accessibility & contrast

On white

11.37
#313F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#313F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F0C
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F0C#FFFFFF#000000##FFFFFF
##313F0C1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433A04
Deuteranopia (green-blind)
#413A10
Tritanopia (blue-blind)
#343B35
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313f0c;
/* rgb */ color: rgb(49, 63, 12);
/* oklch */ color: oklch(34.4% 0.075 123.8);
Tailwind
colors: {
  custom: {
    50: '#6b744f',
    500: '#313f0c',
    950: '#000000',
  },
}
SCSS
$custom: #313f0c;
$custom-light: #6b744f;
$custom-dark: #000000;
JSON
{
  "hex": "#313f0c",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 12
  },
  "hsl": {
    "h": 76.471,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.34366,
    "c": 0.07491,
    "h": 123.8
  },
  "luminance": 0.04235
}

Semantic roles & 50–950 ramp

primary
#313F0C
secondary
#412C7B
accent
#3DEB6D
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #313F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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