#1F480C#1F480C

#1F480C is a dark, moderate green. Relative luminance 0.050; OKLCH L 35.8% C 0.099 H 137.9°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#1F480C
RGBrgb(31, 72, 12)
HSLhsl(101, 71%, 16%)
HSVhsv(101, 83%, 28%)
CMYKcmyk(56.9%, 0%, 83.3%, 71.8%)
CIE-LABlab(26.60, -26.51, 29.59)
CIE-LCHlch(26.60, 39.72, 131.86°)
OKLaboklab(35.84% -0.0733 0.0664)
OKLCHoklch(35.84% 0.099 137.9)
XYZxyz(2.9487, 4.9524, 1.1483)
Luminance0.0495 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F480C #350C48
analogous
#3D480C #1F480C #0C4817
triadic
#1F480C #0C1F48 #480C1F
tetradic
#1F480C #0C3D48 #350C48 #48170C
square
#1F480C #0C3D48 #350C48 #48170C
split-complementary
#1F480C #170C48 #480C3D
monochromatic
#0B1A04 #0B1A04 #1F480C #367C15 #4CB11D

Accessibility & contrast

On white

10.55
#1F480C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#1F480C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F480C
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F480C#FFFFFF#000000##FFFFFF
##1F480C1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4102
Deuteranopia (green-blind)
#453E12
Tritanopia (blue-blind)
#1C453D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f480c;
/* rgb */ color: rgb(31, 72, 12);
/* oklch */ color: oklch(35.8% 0.099 137.9);
Tailwind
colors: {
  custom: {
    50: '#607b50',
    500: '#1f480c',
    950: '#000000',
  },
}
SCSS
$custom: #1f480c;
$custom-light: #607b50;
$custom-dark: #000000;
JSON
{
  "hex": "#1f480c",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 12
  },
  "hsl": {
    "h": 101,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35842,
    "c": 0.09891,
    "h": 137.9
  },
  "luminance": 0.04953
}

Semantic roles & 50–950 ramp

primary
#1F480C
secondary
#682C84
accent
#3AEEB5
background
#F5F7F4
surface
#EAEEE7
border
#C6C9C3
text
#050902
muted
#797B78

Preview Lab

Preview with #1F480C

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

Preview Lab → · Contrast checker → · Palette generator →

#1F480C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva