#1F5D2D#1F5D2D

#1F5D2D is a dark, moderate green. Relative luminance 0.083; OKLCH L 42.6% C 0.100 H 148.0°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#1F5D2D
RGBrgb(31, 93, 45)
HSLhsl(134, 50%, 24%)
HSVhsv(134, 67%, 36%)
CMYKcmyk(66.7%, 0%, 51.6%, 63.5%)
CIE-LABlab(34.62, -31.43, 21.77)
CIE-LCHlch(34.62, 38.23, 145.29°)
OKLaboklab(42.57% -0.0849 0.053)
OKLCHoklch(42.57% 0.1 148)
XYZxyz(4.9527, 8.3090, 3.8249)
Luminance0.0831 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5D2D #5D1F4F
analogous
#305D1F #1F5D2D #1F5D4C
triadic
#1F5D2D #2D1F5D #5D2D1F
tetradic
#1F5D2D #1F305D #5D1F4F #5D4C1F
square
#1F5D2D #1F305D #5D1F4F #5D4C1F
split-complementary
#1F5D2D #4C1F5D #5D1F30
monochromatic
#08170B #102F17 #1F5D2D #2E8B43 #3EB959

Accessibility & contrast

On white

7.89
#1F5D2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#1F5D2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5D2D
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5D2D#FFFFFF#000000##FFFFFF
##1F5D2D1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5529
Deuteranopia (green-blind)
#564F30
Tritanopia (blue-blind)
#0D5B52
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f5d2d;
/* rgb */ color: rgb(31, 93, 45);
/* oklch */ color: oklch(42.6% 0.100 148.0);
Tailwind
colors: {
  custom: {
    50: '#638b67',
    500: '#1f5d2d',
    950: '#000000',
  },
}
SCSS
$custom: #1f5d2d;
$custom-light: #638b67;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5d2d",
  "rgb": {
    "r": 31,
    "g": 93,
    "b": 45
  },
  "hsl": {
    "h": 133.548,
    "s": 50,
    "l": 24.314
  },
  "oklch": {
    "l": 0.42573,
    "c": 0.10007,
    "h": 148
  },
  "luminance": 0.08309
}

Semantic roles & 50–950 ramp

primary
#1F5D2D
secondary
#924681
accent
#4EBADA
background
#F6F8F6
surface
#EBF0EB
border
#C6CBC6
text
#060C06
muted
#7A7D7A

Preview Lab

Preview with #1F5D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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