#0F5F31#0F5F31

#0F5F31 is a dark, moderate green. Relative luminance 0.085; OKLCH L 42.8% C 0.105 H 152.2°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#0F5F31
RGBrgb(15, 95, 49)
HSLhsl(146, 73%, 22%)
HSVhsv(146, 84%, 37%)
CMYKcmyk(84.2%, 0%, 48.4%, 62.7%)
CIE-LABlab(35.02, -34.54, 19.90)
CIE-LCHlch(35.02, 39.86, 150.05°)
OKLaboklab(42.81% -0.0928 0.0489)
OKLCHoklch(42.81% 0.105 152.2)
XYZxyz(4.8431, 8.5071, 4.2919)
Luminance0.0851 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5F31 #5F0F3D
analogous
#155F0F #0F5F31 #0F5F59
triadic
#0F5F31 #310F5F #5F310F
tetradic
#0F5F31 #0F155F #5F0F3D #5F590F
square
#0F5F31 #0F155F #5F0F3D #5F590F
split-complementary
#0F5F31 #590F5F #5F0F15
monochromatic
#041A0E #072A16 #0F5F31 #17944C #20C968

Accessibility & contrast

On white

7.77
#0F5F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#0F5F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5F31
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5F31#FFFFFF#000000##FFFFFF
##0F5F311.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F562E
Deuteranopia (green-blind)
#565034
Tritanopia (blue-blind)
#005D54
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #0f5f31;
/* rgb */ color: rgb(15, 95, 49);
/* oklch */ color: oklch(42.8% 0.105 152.2);
Tailwind
colors: {
  custom: {
    50: '#5d8d6a',
    500: '#0f5f31',
    950: '#000000',
  },
}
SCSS
$custom: #0f5f31;
$custom-light: #5d8d6a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5f31",
  "rgb": {
    "r": 15,
    "g": 95,
    "b": 49
  },
  "hsl": {
    "h": 145.5,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42814,
    "c": 0.1049,
    "h": 152.2
  },
  "luminance": 0.08508
}

Semantic roles & 50–950 ramp

primary
#0F5F31
secondary
#98326D
accent
#38A2EF
background
#F5F8F6
surface
#EAF0EB
border
#C6CBC6
text
#050C06
muted
#797D7A

Preview Lab

Preview with #0F5F31

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

Preview Lab → · Contrast checker → · Palette generator →

#0F5F31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva