#1F3A08#1F3A08

#1F3A08 is a dark, moderate yellow-green. Relative luminance 0.033; OKLCH L 31.5% C 0.081 H 134.1°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#1F3A08
RGBrgb(31, 58, 8)
HSLhsl(92, 76%, 13%)
HSVhsv(92, 86%, 23%)
CMYKcmyk(46.6%, 0%, 86.2%, 77.3%)
CIE-LABlab(21.34, -20.15, 25.90)
CIE-LCHlch(21.34, 32.81, 127.89°)
OKLaboklab(31.51% -0.0565 0.0584)
OKLCHoklch(31.51% 0.081 134.1)
XYZxyz(2.1219, 3.3348, 0.7616)
Luminance0.0333 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3A08 #23083A
analogous
#383A08 #1F3A08 #083A0A
triadic
#1F3A08 #081F3A #3A081F
tetradic
#1F3A08 #08383A #23083A #3A0A08
square
#1F3A08 #08383A #23083A #3A0A08
split-complementary
#1F3A08 #0A083A #3A0838
monochromatic
#0E1B04 #0E1B04 #1F3A08 #3C700F #58A617

Accessibility & contrast

On white

12.60
#1F3A08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F3A08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3A08
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3A08#FFFFFF#000000##FFFFFF
##1F3A081.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3502
Deuteranopia (green-blind)
#39320D
Tritanopia (blue-blind)
#1F3730
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f3a08;
/* rgb */ color: rgb(31, 58, 8);
/* oklch */ color: oklch(31.5% 0.081 134.1);
Tailwind
colors: {
  custom: {
    50: '#5e704c',
    500: '#1f3a08',
    950: '#000000',
  },
}
SCSS
$custom: #1f3a08;
$custom-light: #5e704c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3a08",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 8
  },
  "hsl": {
    "h": 92.4,
    "s": 75.758,
    "l": 12.941
  },
  "oklch": {
    "l": 0.31513,
    "c": 0.08129,
    "h": 134.1
  },
  "luminance": 0.03335
}

Semantic roles & 50–950 ramp

primary
#1F3A08
secondary
#522579
accent
#35F29B
background
#F5F6F4
surface
#E9ECE7
border
#C5C7C3
text
#040701
muted
#797A77

Preview Lab

Preview with #1F3A08

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

Preview Lab → · Contrast checker → · Palette generator →

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