#1F3307#1F3307

#1F3307 is a dark, moderate yellow-green. Relative luminance 0.027; OKLCH L 29.3% C 0.071 H 131.1°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#1F3307
RGBrgb(31, 51, 7)
HSLhsl(87, 76%, 11%)
HSVhsv(87, 86%, 20%)
CMYKcmyk(39.2%, 0%, 86.3%, 80%)
CIE-LABlab(18.69, -16.56, 23.31)
CIE-LCHlch(18.69, 28.60, 125.39°)
OKLaboklab(29.35% -0.0469 0.0538)
OKLCHoklch(29.35% 0.071 131.1)
XYZxyz(1.7872, 2.6742, 0.6230)
Luminance0.0267 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3307 #1B0733
analogous
#333107 #1F3307 #093307
triadic
#1F3307 #071F33 #33071F
tetradic
#1F3307 #073331 #1B0733 #330709
square
#1F3307 #073331 #1B0733 #330709
split-complementary
#1F3307 #070933 #310733
monochromatic
#101B04 #101B04 #1F3307 #40690E #609F16

Accessibility & contrast

On white

13.68
#1F3307 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F3307 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3307
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3307#FFFFFF#000000##FFFFFF
##1F33071.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#362E02
Deuteranopia (green-blind)
#332D0B
Tritanopia (blue-blind)
#20302A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f3307;
/* rgb */ color: rgb(31, 51, 7);
/* oklch */ color: oklch(29.3% 0.071 131.1);
Tailwind
colors: {
  custom: {
    50: '#5d6a4a',
    500: '#1f3307',
    950: '#000000',
  },
}
SCSS
$custom: #1f3307;
$custom-light: #5d6a4a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3307",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 7
  },
  "hsl": {
    "h": 87.273,
    "s": 75.862,
    "l": 11.373
  },
  "oklch": {
    "l": 0.29346,
    "c": 0.0714,
    "h": 131.1
  },
  "luminance": 0.02674
}

Semantic roles & 50–950 ramp

primary
#1F3307
secondary
#472373
accent
#35F28B
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #1F3307

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

Preview Lab → · Contrast checker → · Palette generator →

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