#1F4105#1F4105

#1F4105 is a dark, moderate yellow-green. Relative luminance 0.041; OKLCH L 33.6% C 0.094 H 135.4°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#1F4105
RGBrgb(31, 65, 5)
HSLhsl(94, 86%, 14%)
HSVhsv(94, 92%, 25%)
CMYKcmyk(52.3%, 0%, 92.3%, 74.5%)
CIE-LABlab(23.94, -23.81, 29.83)
CIE-LCHlch(23.94, 38.17, 128.60°)
OKLaboklab(33.64% -0.0667 0.0658)
OKLCHoklch(33.64% 0.094 135.4)
XYZxyz(2.4827, 4.0827, 0.8008)
Luminance0.0408 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4105 #270541
analogous
#3D4105 #1F4105 #054109
triadic
#1F4105 #051F41 #41051F
tetradic
#1F4105 #053D41 #270541 #410905
square
#1F4105 #053D41 #270541 #410905
split-complementary
#1F4105 #090541 #41053D
monochromatic
#0E1C02 #0E1C02 #1F4105 #3A7A09 #55B30E

Accessibility & contrast

On white

11.56
#1F4105 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F4105 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4105
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4105#FFFFFF#000000##FFFFFF
##1F41051.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B00
Deuteranopia (green-blind)
#3F380C
Tritanopia (blue-blind)
#1E3E36
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f4105;
/* rgb */ color: rgb(31, 65, 5);
/* oklch */ color: oklch(33.6% 0.094 135.4);
Tailwind
colors: {
  custom: {
    50: '#5f764b',
    500: '#1f4105',
    950: '#000000',
  },
}
SCSS
$custom: #1f4105;
$custom-light: #5f764b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4105",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 5
  },
  "hsl": {
    "h": 94,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.33643,
    "c": 0.09366,
    "h": 135.4
  },
  "luminance": 0.04083
}

Semantic roles & 50–950 ramp

primary
#1F4105
secondary
#572081
accent
#2CFCA2
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050801
muted
#797B77

Preview Lab

Preview with #1F4105

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

Preview Lab → · Contrast checker → · Palette generator →

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