#1F300D#1F300D

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

Color values

HEX#1F300D
RGBrgb(31, 48, 13)
HSLhsl(89, 57%, 12%)
HSVhsv(89, 73%, 19%)
CMYKcmyk(35.4%, 0%, 72.9%, 81.2%)
CIE-LABlab(17.62, -14.28, 19.49)
CIE-LCHlch(17.62, 24.16, 126.24°)
OKLaboklab(28.49% -0.04 0.0458)
OKLCHoklch(28.49% 0.061 131.2)
XYZxyz(1.6947, 2.4342, 0.7613)
Luminance0.0243 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F300D #1E0D30
analogous
#30300D #1F300D #0E300D
triadic
#1F300D #0D1F30 #300D1F
tetradic
#1F300D #0D3030 #1E0D30 #300D0E
square
#1F300D #0D3030 #1E0D30 #300D0E
split-complementary
#1F300D #0D0E30 #300D30
monochromatic
#101807 #101807 #1F300D #3E601A #5D9027

Accessibility & contrast

On white

14.12
#1F300D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F300D
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F300D#FFFFFF#000000##FFFFFF
##1F300D1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322C09
Deuteranopia (green-blind)
#302B10
Tritanopia (blue-blind)
#202E29
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f300d;
/* rgb */ color: rgb(31, 48, 13);
/* oklch */ color: oklch(28.5% 0.061 131.2);
Tailwind
colors: {
  custom: {
    50: '#5c684d',
    500: '#1f300d',
    950: '#000000',
  },
}
SCSS
$custom: #1f300d;
$custom-light: #5c684d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f300d",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 13
  },
  "hsl": {
    "h": 89.143,
    "s": 57.377,
    "l": 11.961
  },
  "oklch": {
    "l": 0.28495,
    "c": 0.06082,
    "h": 131.2
  },
  "luminance": 0.02434
}

Semantic roles & 50–950 ramp

primary
#1F300D
secondary
#4C2E6B
accent
#47E192
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #1F300D

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

Preview Lab → · Contrast checker → · Palette generator →

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