#1F460F#1F460F

#1F460F is a dark, moderate green. Relative luminance 0.047; OKLCH L 35.3% C 0.094 H 138.2°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#1F460F
RGBrgb(31, 70, 15)
HSLhsl(103, 65%, 17%)
HSVhsv(103, 79%, 27%)
CMYKcmyk(55.7%, 0%, 78.6%, 72.5%)
CIE-LABlab(25.88, -25.34, 27.57)
CIE-LCHlch(25.88, 37.44, 132.58°)
OKLaboklab(35.26% -0.07 0.0626)
OKLCHoklch(35.26% 0.094 138.2)
XYZxyz(2.8414, 4.7059, 1.2105)
Luminance0.0471 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F460F #360F46
analogous
#3B460F #1F460F #0F461B
triadic
#1F460F #0F1F46 #460F1F
tetradic
#1F460F #0F3B46 #360F46 #461B0F
square
#1F460F #0F3B46 #360F46 #461B0F
split-complementary
#1F460F #1B0F46 #460F3B
monochromatic
#0B1905 #0B1905 #1F460F #35781A #4CAB25

Accessibility & contrast

On white

10.82
#1F460F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1F460F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F460F
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F460F#FFFFFF#000000##FFFFFF
##1F460F1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483F07
Deuteranopia (green-blind)
#433C14
Tritanopia (blue-blind)
#1C433B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f460f;
/* rgb */ color: rgb(31, 70, 15);
/* oklch */ color: oklch(35.3% 0.094 138.2);
Tailwind
colors: {
  custom: {
    50: '#5f7a51',
    500: '#1f460f',
    950: '#000000',
  },
}
SCSS
$custom: #1f460f;
$custom-light: #5f7a51;
$custom-dark: #000000;
JSON
{
  "hex": "#1f460f",
  "rgb": {
    "r": 31,
    "g": 70,
    "b": 15
  },
  "hsl": {
    "h": 102.545,
    "s": 64.706,
    "l": 16.667
  },
  "oklch": {
    "l": 0.35258,
    "c": 0.09391,
    "h": 138.2
  },
  "luminance": 0.04706
}

Semantic roles & 50–950 ramp

primary
#1F460F
secondary
#693080
accent
#40E8B7
background
#F5F7F4
surface
#EAEDE7
border
#C6C8C3
text
#050902
muted
#797B78

Preview Lab

Preview with #1F460F

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

Preview Lab → · Contrast checker → · Palette generator →

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