#313F0F#313F0F

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

Color values

HEX#313F0F
RGBrgb(49, 63, 15)
HSLhsl(78, 62%, 15%)
HSVhsv(78, 76%, 25%)
CMYKcmyk(22.2%, 0%, 76.2%, 75.3%)
CIE-LABlab(24.46, -14.11, 26.44)
CIE-LCHlch(24.46, 29.97, 118.09°)
OKLaboklab(34.39% -0.0407 0.0599)
OKLCHoklch(34.39% 0.072 124.2)
XYZxyz(3.1304, 4.2424, 1.1058)
Luminance0.0424 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F0F #1D0F3F
analogous
#3F350F #313F0F #193F0F
triadic
#313F0F #0F313F #3F0F31
tetradic
#313F0F #0F3F35 #1D0F3F #3F0F19
square
#313F0F #0F3F35 #1D0F3F #3F0F19
split-complementary
#313F0F #0F193F #350F3F
monochromatic
#131906 #131906 #313F0F #57701B #7EA227

Accessibility & contrast

On white

11.36
#313F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313F0F
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F0F#FFFFFF#000000##FFFFFF
##313F0F1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B08
Deuteranopia (green-blind)
#413A13
Tritanopia (blue-blind)
#343C35
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313f0f;
/* rgb */ color: rgb(49, 63, 15);
/* oklch */ color: oklch(34.4% 0.072 124.2);
Tailwind
colors: {
  custom: {
    50: '#6b7450',
    500: '#313f0f',
    950: '#000000',
  },
}
SCSS
$custom: #313f0f;
$custom-light: #6b7450;
$custom-dark: #000000;
JSON
{
  "hex": "#313f0f",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 15
  },
  "hsl": {
    "h": 77.5,
    "s": 61.538,
    "l": 15.294
  },
  "oklch": {
    "l": 0.34395,
    "c": 0.07244,
    "h": 124.2
  },
  "luminance": 0.04242
}

Semantic roles & 50–950 ramp

primary
#313F0F
secondary
#463079
accent
#43E572
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #313F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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