#1F4B0C#1F4B0C

#1F4B0C is a dark, moderate green. Relative luminance 0.053; OKLCH L 36.8% C 0.103 H 138.3°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#1F4B0C
RGBrgb(31, 75, 12)
HSLhsl(102, 72%, 17%)
HSVhsv(102, 84%, 29%)
CMYKcmyk(58.7%, 0%, 84%, 70.6%)
CIE-LABlab(27.71, -27.84, 30.67)
CIE-LCHlch(27.71, 41.42, 132.23°)
OKLaboklab(36.76% -0.0769 0.0686)
OKLCHoklch(36.76% 0.103 138.3)
XYZxyz(3.1474, 5.3498, 1.2145)
Luminance0.0535 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4B0C #380C4B
analogous
#3F4B0C #1F4B0C #0C4B19
triadic
#1F4B0C #0C1F4B #4B0C1F
tetradic
#1F4B0C #0C3F4B #380C4B #4B190C
square
#1F4B0C #0C3F4B #380C4B #4B190C
split-complementary
#1F4B0C #190C4B #4B0C3F
monochromatic
#0B1A04 #0B1A04 #1F4B0C #358014 #4BB51D

Accessibility & contrast

On white

10.14
#1F4B0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#1F4B0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4B0C
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4B0C#FFFFFF#000000##FFFFFF
##1F4B0C1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4401
Deuteranopia (green-blind)
#484013
Tritanopia (blue-blind)
#1B483F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f4b0c;
/* rgb */ color: rgb(31, 75, 12);
/* oklch */ color: oklch(36.8% 0.103 138.3);
Tailwind
colors: {
  custom: {
    50: '#607e50',
    500: '#1f4b0c',
    950: '#000000',
  },
}
SCSS
$custom: #1f4b0c;
$custom-light: #607e50;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4b0c",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 12
  },
  "hsl": {
    "h": 101.905,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.36757,
    "c": 0.1031,
    "h": 138.3
  },
  "luminance": 0.0535
}

Semantic roles & 50–950 ramp

primary
#1F4B0C
secondary
#6B2C87
accent
#39EFB8
background
#F5F7F4
surface
#EAEEE7
border
#C6C9C3
text
#050A02
muted
#797C78

Preview Lab

Preview with #1F4B0C

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

Preview Lab → · Contrast checker → · Palette generator →

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