#1F300A#1F300A

#1F300A is a dark, moderate yellow-green. Relative luminance 0.024; OKLCH L 28.5% C 0.064 H 130.3°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#1F300A
RGBrgb(31, 48, 10)
HSLhsl(87, 66%, 11%)
HSVhsv(87, 79%, 19%)
CMYKcmyk(35.4%, 0%, 79.2%, 81.2%)
CIE-LABlab(17.59, -14.60, 20.78)
CIE-LCHlch(17.59, 25.40, 125.10°)
OKLaboklab(28.46% -0.0412 0.0487)
OKLCHoklch(28.46% 0.064 130.3)
XYZxyz(1.6768, 2.4271, 0.6672)
Luminance0.0243 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F300A #1B0A30
analogous
#302E0A #1F300A #0C300A
triadic
#1F300A #0A1F30 #300A1F
tetradic
#1F300A #0A302E #1B0A30 #300A0C
square
#1F300A #0A302E #1B0A30 #300A0C
split-complementary
#1F300A #0A0C30 #2E0A30
monochromatic
#101905 #101905 #1F300A #406315 #60951F

Accessibility & contrast

On white

14.14
#1F300A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1F300A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F300A
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F300A#FFFFFF#000000##FFFFFF
##1F300A1.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332C06
Deuteranopia (green-blind)
#302B0D
Tritanopia (blue-blind)
#202E28
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f300a;
/* rgb */ color: rgb(31, 48, 10);
/* oklch */ color: oklch(28.5% 0.064 130.3);
Tailwind
colors: {
  custom: {
    50: '#5c684c',
    500: '#1f300a',
    950: '#000000',
  },
}
SCSS
$custom: #1f300a;
$custom-light: #5c684c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f300a",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 10
  },
  "hsl": {
    "h": 86.842,
    "s": 65.517,
    "l": 11.373
  },
  "oklch": {
    "l": 0.28457,
    "c": 0.0638,
    "h": 130.3
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

primary
#1F300A
secondary
#47296D
accent
#3FE88B
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #1F300A

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

Preview Lab → · Contrast checker → · Palette generator →

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