#0F581C#0F581C

#0F581C is a dark, moderate green. Relative luminance 0.072; OKLCH L 40.4% C 0.115 H 145.5°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#0F581C
RGBrgb(15, 88, 28)
HSLhsl(131, 71%, 20%)
HSVhsv(131, 83%, 35%)
CMYKcmyk(83%, 0%, 68.2%, 65.5%)
CIE-LABlab(32.18, -35.27, 27.97)
CIE-LCHlch(32.18, 45.01, 141.58°)
OKLaboklab(40.37% -0.0951 0.0653)
OKLCHoklch(40.37% 0.115 145.5)
XYZxyz(3.8960, 7.1644, 2.2759)
Luminance0.0717 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F581C #580F4B
analogous
#26580F #0F581C #0F5840
triadic
#0F581C #1C0F58 #581C0F
tetradic
#0F581C #0F2658 #580F4B #58400F
square
#0F581C #0F2658 #580F4B #58400F
split-complementary
#0F581C #400F58 #580F26
monochromatic
#041A08 #06240B #0F581C #188C2D #21C13D

Accessibility & contrast

On white

8.63
#0F581C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#0F581C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F581C
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F581C#FFFFFF#000000##FFFFFF
##0F581C1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F15
Deuteranopia (green-blind)
#514921
Tritanopia (blue-blind)
#00564B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #0f581c;
/* rgb */ color: rgb(15, 88, 28);
/* oklch */ color: oklch(40.4% 0.115 145.5);
Tailwind
colors: {
  custom: {
    50: '#5c885b',
    500: '#0f581c',
    950: '#000000',
  },
}
SCSS
$custom: #0f581c;
$custom-light: #5c885b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f581c",
  "rgb": {
    "r": 15,
    "g": 88,
    "b": 28
  },
  "hsl": {
    "h": 130.685,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40367,
    "c": 0.11536,
    "h": 145.5
  },
  "luminance": 0.07165
}

Semantic roles & 50–950 ramp

primary
#0F581C
secondary
#923181
accent
#3ACEEE
background
#F5F8F5
surface
#E9F0E9
border
#C5CBC5
text
#050B04
muted
#797C79

Preview Lab

Preview with #0F581C

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

Preview Lab → · Contrast checker → · Palette generator →

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