#1F480B#1F480B

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

Color values

HEX#1F480B
RGBrgb(31, 72, 11)
HSLhsl(100, 73%, 16%)
HSVhsv(100, 85%, 28%)
CMYKcmyk(56.9%, 0%, 84.7%, 71.8%)
CIE-LABlab(26.59, -26.58, 29.98)
CIE-LCHlch(26.59, 40.07, 131.56°)
OKLaboklab(35.84% -0.0736 0.067)
OKLCHoklch(35.84% 0.1 137.7)
XYZxyz(2.9427, 4.9500, 1.1169)
Luminance0.0495 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F480B #340B48
analogous
#3E480B #1F480B #0B4816
triadic
#1F480B #0B1F48 #480B1F
tetradic
#1F480B #0B3E48 #340B48 #48160B
square
#1F480B #0B3E48 #340B48 #48160B
split-complementary
#1F480B #160B48 #480B3E
monochromatic
#0B1B04 #0B1B04 #1F480B #367D13 #4DB21B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F480B#FFFFFF#000000##FFFFFF
##1F480B1.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)
#4B4101
Deuteranopia (green-blind)
#453E12
Tritanopia (blue-blind)
#1C453C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f480b;
/* rgb */ color: rgb(31, 72, 11);
/* oklch */ color: oklch(35.8% 0.100 137.7);
Tailwind
colors: {
  custom: {
    50: '#607b4f',
    500: '#1f480b',
    950: '#000000',
  },
}
SCSS
$custom: #1f480b;
$custom-light: #607b4f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f480b",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 11
  },
  "hsl": {
    "h": 100.328,
    "s": 73.494,
    "l": 16.275
  },
  "oklch": {
    "l": 0.35835,
    "c": 0.09955,
    "h": 137.7
  },
  "luminance": 0.0495
}

Semantic roles & 50–950 ramp

primary
#1F480B
secondary
#672A84
accent
#38F0B4
background
#F5F7F4
surface
#EAEEE7
border
#C6C9C3
text
#050902
muted
#797B78

Preview Lab

Preview with #1F480B

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

Preview Lab → · Contrast checker → · Palette generator →

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