#1F522F#1F522F

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

Color values

HEX#1F522F
RGBrgb(31, 82, 47)
HSLhsl(139, 45%, 22%)
HSVhsv(139, 62%, 32%)
CMYKcmyk(62.2%, 0%, 42.7%, 67.8%)
CIE-LABlab(30.71, -26.07, 15.57)
CIE-LCHlch(30.71, 30.36, 149.16°)
OKLaboklab(39.38% -0.0706 0.0387)
OKLCHoklch(39.38% 0.081 151.2)
XYZxyz(4.0952, 6.5308, 3.7335)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F522F #521F42
analogous
#28521F #1F522F #1F5249
triadic
#1F522F #2F1F52 #522F1F
tetradic
#1F522F #1F2852 #521F42 #52491F
square
#1F522F #1F2852 #521F42 #52491F
split-complementary
#1F522F #491F52 #521F28
monochromatic
#08160D #0E2616 #1F522F #307E48 #41AB62

Accessibility & contrast

On white

9.11
#1F522F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F522F
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F522F#FFFFFF#000000##FFFFFF
##1F522F1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524B2D
Deuteranopia (green-blind)
#4B4631
Tritanopia (blue-blind)
#115149
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f522f;
/* rgb */ color: rgb(31, 82, 47);
/* oklch */ color: oklch(39.4% 0.081 151.2);
Tailwind
colors: {
  custom: {
    50: '#608368',
    500: '#1f522f',
    950: '#000000',
  },
}
SCSS
$custom: #1f522f;
$custom-light: #608368;
$custom-dark: #000000;
JSON
{
  "hex": "#1f522f",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 47
  },
  "hsl": {
    "h": 138.824,
    "s": 45.133,
    "l": 22.157
  },
  "oklch": {
    "l": 0.39375,
    "c": 0.08054,
    "h": 151.2
  },
  "luminance": 0.06531
}

Semantic roles & 50–950 ramp

primary
#1F522F
secondary
#874672
accent
#53ACD5
background
#F5F8F6
surface
#EAEFEB
border
#C6CAC6
text
#050A06
muted
#797C7A

Preview Lab

Preview with #1F522F

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

Preview Lab → · Contrast checker → · Palette generator →

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