#285F0F#285F0F

#285F0F is a dark, vivid green. Relative luminance 0.087; OKLCH L 43.2% C 0.123 H 138.2°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#285F0F
RGBrgb(40, 95, 15)
HSLhsl(101, 73%, 22%)
HSVhsv(101, 84%, 37%)
CMYKcmyk(57.9%, 0%, 84.2%, 62.7%)
CIE-LABlab(35.34, -33.28, 37.02)
CIE-LCHlch(35.34, 49.78, 131.96°)
OKLaboklab(43.16% -0.092 0.0823)
OKLCHoklch(43.16% 0.123 138.2)
XYZxyz(5.0533, 8.6696, 1.8590)
Luminance0.0867 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285F0F #460F5F
analogous
#505F0F #285F0F #0F5F1E
triadic
#285F0F #0F285F #5F0F28
tetradic
#285F0F #0F505F #460F5F #5F1E0F
square
#285F0F #0F505F #460F5F #5F1E0F
split-complementary
#285F0F #1E0F5F #5F0F50
monochromatic
#0B1A04 #122A07 #285F0F #3E9417 #55C920

Accessibility & contrast

On white

7.68
#285F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#285F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285F0F
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285F0F#FFFFFF#000000##FFFFFF
##285F0F1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625600
Deuteranopia (green-blind)
#5B5118
Tritanopia (blue-blind)
#235B50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #285f0f;
/* rgb */ color: rgb(40, 95, 15);
/* oklch */ color: oklch(43.2% 0.123 138.2);
Tailwind
colors: {
  custom: {
    50: '#698d55',
    500: '#285f0f',
    950: '#000000',
  },
}
SCSS
$custom: #285f0f;
$custom-light: #698d55;
$custom-dark: #000000;
JSON
{
  "hex": "#285f0f",
  "rgb": {
    "r": 40,
    "g": 95,
    "b": 15
  },
  "hsl": {
    "h": 101.25,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.43158,
    "c": 0.12344,
    "h": 138.2
  },
  "luminance": 0.0867
}

Semantic roles & 50–950 ramp

primary
#285F0F
secondary
#783298
accent
#38EFB6
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #285F0F

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

Preview Lab → · Contrast checker → · Palette generator →

#285F0F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva