#313F28#313F28

#313F28 is a dark, muted yellow-green. Relative luminance 0.044; OKLCH L 34.8% C 0.043 H 133.7°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#313F28
RGBrgb(49, 63, 40)
HSLhsl(97, 22%, 20%)
HSVhsv(97, 37%, 25%)
CMYKcmyk(22.2%, 0%, 36.5%, 75.3%)
CIE-LABlab(24.83, -10.81, 12.31)
CIE-LCHlch(24.83, 16.38, 131.30°)
OKLaboklab(34.82% -0.0294 0.0308)
OKLCHoklch(34.82% 0.043 133.7)
XYZxyz(3.4271, 4.3611, 2.6683)
Luminance0.0436 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F28 #36283F
analogous
#3C3F28 #313F28 #283F2A
triadic
#313F28 #28313F #3F2831
tetradic
#313F28 #283C3F #36283F #3F2A28
square
#313F28 #283C3F #36283F #3F2A28
split-complementary
#313F28 #2A283F #3F283C
monochromatic
#0F130C #141A10 #313F28 #4E6440 #6B8A58

Accessibility & contrast

On white

11.22
#313F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#313F28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F28
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F28#FFFFFF#000000##FFFFFF
##313F281.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413C26
Deuteranopia (green-blind)
#3F3B29
Tritanopia (blue-blind)
#313D39
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #313f28;
/* rgb */ color: rgb(49, 63, 40);
/* oklch */ color: oklch(34.8% 0.043 133.7);
Tailwind
colors: {
  custom: {
    50: '#697462',
    500: '#313f28',
    950: '#000000',
  },
}
SCSS
$custom: #313f28;
$custom-light: #697462;
$custom-dark: #000000;
JSON
{
  "hex": "#313f28",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 40
  },
  "hsl": {
    "h": 96.522,
    "s": 22.33,
    "l": 20.196
  },
  "oklch": {
    "l": 0.34817,
    "c": 0.0426,
    "h": 133.7
  },
  "luminance": 0.04361
}

Semantic roles & 50–950 ramp

primary
#313F28
secondary
#655271
accent
#69BF9D
background
#F6F7F5
surface
#EBEDEA
border
#C6C8C6
text
#060805
muted
#7A7B79

Preview Lab

Preview with #313F28

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

Preview Lab → · Contrast checker → · Palette generator →

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