#1F6540#1F6540

#1F6540 is a mid, moderate green. Relative luminance 0.100; OKLCH L 45.3% C 0.092 H 156.3°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#1F6540
RGBrgb(31, 101, 64)
HSLhsl(148, 53%, 26%)
HSVhsv(148, 69%, 40%)
CMYKcmyk(69.3%, 0%, 36.6%, 60.4%)
CIE-LABlab(37.79, -31.17, 14.77)
CIE-LCHlch(37.79, 34.49, 154.65°)
OKLaboklab(45.29% -0.0846 0.0372)
OKLCHoklch(45.29% 0.092 156.3)
XYZxyz(6.1436, 9.9682, 6.4498)
Luminance0.0997 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F6540 #651F44
analogous
#21651F #1F6540 #1F6563
triadic
#1F6540 #401F65 #65401F
tetradic
#1F6540 #1F2165 #651F44 #65631F
square
#1F6540 #1F2165 #651F44 #65631F
split-complementary
#1F6540 #631F65 #651F21
monochromatic
#07170F #113622 #1F6540 #2D945E #3CC37B

Accessibility & contrast

On white

7.01
#1F6540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#1F6540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F6540
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F6540#FFFFFF#000000##FFFFFF
##1F65401.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645D3E
Deuteranopia (green-blind)
#5B5642
Tritanopia (blue-blind)
#00645B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #1f6540;
/* rgb */ color: rgb(31, 101, 64);
/* oklch */ color: oklch(45.3% 0.092 156.3);
Tailwind
colors: {
  custom: {
    50: '#649175',
    500: '#1f6540',
    950: '#000000',
  },
}
SCSS
$custom: #1f6540;
$custom-light: #649175;
$custom-dark: #000000;
JSON
{
  "hex": "#1f6540",
  "rgb": {
    "r": 31,
    "g": 101,
    "b": 64
  },
  "hsl": {
    "h": 148.286,
    "s": 53.03,
    "l": 25.882
  },
  "oklch": {
    "l": 0.45291,
    "c": 0.09237,
    "h": 156.3
  },
  "luminance": 0.09969
}

Semantic roles & 50–950 ramp

primary
#1F6540
secondary
#994672
accent
#4B98DC
background
#F6F9F7
surface
#EBF1ED
border
#C6CBC8
text
#060D08
muted
#7A7E7B

Preview Lab

Preview with #1F6540

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

Preview Lab → · Contrast checker → · Palette generator →

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