#1F5231#1F5231

#1F5231 is a dark, moderate green. Relative luminance 0.065; OKLCH L 39.4% C 0.078 H 152.6°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#1F5231
RGBrgb(31, 82, 49)
HSLhsl(141, 45%, 22%)
HSVhsv(141, 62%, 32%)
CMYKcmyk(62.2%, 0%, 40.2%, 67.8%)
CIE-LABlab(30.75, -25.65, 14.40)
CIE-LCHlch(30.75, 29.41, 150.70°)
OKLaboklab(39.42% -0.0696 0.036)
OKLCHoklch(39.42% 0.078 152.6)
XYZxyz(4.1364, 6.5473, 3.9509)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5231 #521F40
analogous
#27521F #1F5231 #1F524B
triadic
#1F5231 #311F52 #52311F
tetradic
#1F5231 #1F2752 #521F40 #524B1F
square
#1F5231 #1F2752 #521F40 #524B1F
split-complementary
#1F5231 #4B1F52 #521F27
monochromatic
#08160D #0E2616 #1F5231 #307E4C #41AB66

Accessibility & contrast

On white

9.09
#1F5231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#1F5231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5231
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5231#FFFFFF#000000##FFFFFF
##1F52311.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524B2F
Deuteranopia (green-blind)
#4B4633
Tritanopia (blue-blind)
#10514A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f5231;
/* rgb */ color: rgb(31, 82, 49);
/* oklch */ color: oklch(39.4% 0.078 152.6);
Tailwind
colors: {
  custom: {
    50: '#608369',
    500: '#1f5231',
    950: '#000000',
  },
}
SCSS
$custom: #1f5231;
$custom-light: #608369;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5231",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 49
  },
  "hsl": {
    "h": 141.176,
    "s": 45.133,
    "l": 22.157
  },
  "oklch": {
    "l": 0.3942,
    "c": 0.07833,
    "h": 152.6
  },
  "luminance": 0.06548
}

Semantic roles & 50–950 ramp

primary
#1F5231
secondary
#874670
accent
#53A7D5
background
#F5F8F6
surface
#EAEFEB
border
#C6CAC6
text
#050A06
muted
#797C7A

Preview Lab

Preview with #1F5231

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

Preview Lab → · Contrast checker → · Palette generator →

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