#0F5A31#0F5A31

#0F5A31 is a dark, moderate green. Relative luminance 0.076; OKLCH L 41.3% C 0.098 H 153.6°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#0F5A31
RGBrgb(15, 90, 49)
HSLhsl(147, 71%, 21%)
HSVhsv(147, 83%, 35%)
CMYKcmyk(83.3%, 0%, 45.6%, 64.7%)
CIE-LABlab(33.21, -32.49, 17.56)
CIE-LCHlch(33.21, 36.93, 151.61°)
OKLaboklab(41.32% -0.0874 0.0435)
OKLCHoklch(41.32% 0.098 153.6)
XYZxyz(4.4071, 7.6351, 4.1466)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5A31 #5A0F38
analogous
#125A0F #0F5A31 #0F5A56
triadic
#0F5A31 #310F5A #5A310F
tetradic
#0F5A31 #0F125A #5A0F38 #5A560F
square
#0F5A31 #0F125A #5A0F38 #5A560F
split-complementary
#0F5A31 #560F5A #5A0F12
monochromatic
#041A0E #062614 #0F5A31 #188E4E #20C36A

Accessibility & contrast

On white

8.31
#0F5A31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#0F5A31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5A31
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5A31#FFFFFF#000000##FFFFFF
##0F5A311.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A522E
Deuteranopia (green-blind)
#514C34
Tritanopia (blue-blind)
#005950
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #0f5a31;
/* rgb */ color: rgb(15, 90, 49);
/* oklch */ color: oklch(41.3% 0.098 153.6);
Tailwind
colors: {
  custom: {
    50: '#5c8969',
    500: '#0f5a31',
    950: '#000000',
  },
}
SCSS
$custom: #0f5a31;
$custom-light: #5c8969;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5a31",
  "rgb": {
    "r": 15,
    "g": 90,
    "b": 49
  },
  "hsl": {
    "h": 147.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41321,
    "c": 0.09764,
    "h": 153.6
  },
  "luminance": 0.07636
}

Semantic roles & 50–950 ramp

primary
#0F5A31
secondary
#943167
accent
#3A9CEE
background
#F5F8F6
surface
#E9F0EB
border
#C5CBC6
text
#050C06
muted
#797D7A

Preview Lab

Preview with #0F5A31

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

Preview Lab → · Contrast checker → · Palette generator →

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