#284F2F#284F2F

#284F2F is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.9% C 0.070 H 148.3°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#284F2F
RGBrgb(40, 79, 47)
HSLhsl(131, 33%, 23%)
HSVhsv(131, 49%, 31%)
CMYKcmyk(49.4%, 0%, 40.5%, 69%)
CIE-LABlab(30.03, -21.86, 14.73)
CIE-LCHlch(30.03, 26.36, 146.02°)
OKLaboklab(38.92% -0.0595 0.0368)
OKLCHoklch(38.92% 0.07 148.3)
XYZxyz(4.1839, 6.2480, 3.6743)
Luminance0.0625 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F2F #4F2848
analogous
#344F28 #284F2F #284F42
triadic
#284F2F #2F284F #4F2F28
tetradic
#284F2F #28344F #4F2848 #4F4228
square
#284F2F #28344F #4F2848 #4F4228
split-complementary
#284F2F #42284F #4F2834
monochromatic
#0A140C #132617 #284F2F #3D7847 #51A05F

Accessibility & contrast

On white

9.33
#284F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#284F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F2F
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F2F#FFFFFF#000000##FFFFFF
##284F2F1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50492D
Deuteranopia (green-blind)
#4A4531
Tritanopia (blue-blind)
#214E47
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #284f2f;
/* rgb */ color: rgb(40, 79, 47);
/* oklch */ color: oklch(38.9% 0.070 148.3);
Tailwind
colors: {
  custom: {
    50: '#658068',
    500: '#284f2f',
    950: '#000000',
  },
}
SCSS
$custom: #284f2f;
$custom-light: #658068;
$custom-dark: #000000;
JSON
{
  "hex": "#284f2f",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 47
  },
  "hsl": {
    "h": 130.769,
    "s": 32.773,
    "l": 23.333
  },
  "oklch": {
    "l": 0.38923,
    "c": 0.06991,
    "h": 148.3
  },
  "luminance": 0.06248
}

Semantic roles & 50–950 ramp

primary
#284F2F
secondary
#825179
accent
#5FB6C9
background
#F6F7F6
surface
#EBEEEB
border
#C6C9C6
text
#060A06
muted
#7A7C7A

Preview Lab

Preview with #284F2F

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

Preview Lab → · Contrast checker → · Palette generator →

#284F2F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva