#04280F#04280F

#04280F is a very dark, moderate green. Relative luminance 0.016; OKLCH L 24.4% C 0.062 H 149.7°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#04280F
RGBrgb(4, 40, 15)
HSLhsl(138, 82%, 9%)
HSVhsv(138, 90%, 16%)
CMYKcmyk(90%, 0%, 62.5%, 84.3%)
CIE-LABlab(13.09, -19.82, 12.43)
CIE-LCHlch(13.09, 23.40, 147.90°)
OKLaboklab(24.42% -0.0533 0.0311)
OKLCHoklch(24.42% 0.062 149.7)
XYZxyz(0.8950, 1.5778, 0.7092)
Luminance0.0158 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04280F #28041D
analogous
#0B2804 #04280F #042821
triadic
#04280F #0F0428 #280F04
tetradic
#04280F #040B28 #28041D #282104
square
#04280F #040B28 #28041D #282104
split-complementary
#04280F #210428 #28040B
monochromatic
#031C0A #031C0A #04280F #0A6024 #0F9739

Accessibility & contrast

On white

15.96
#04280F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#04280F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04280F
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04280F#FFFFFF#000000##FFFFFF
##04280F1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28240D
Deuteranopia (green-blind)
#242111
Tritanopia (blue-blind)
#002722
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #04280f;
/* rgb */ color: rgb(4, 40, 15);
/* oklch */ color: oklch(24.4% 0.062 149.7);
Tailwind
colors: {
  custom: {
    50: '#49624e',
    500: '#04280f',
    950: '#000000',
  },
}
SCSS
$custom: #04280f;
$custom-light: #49624e;
$custom-dark: #000000;
JSON
{
  "hex": "#04280f",
  "rgb": {
    "r": 4,
    "g": 40,
    "b": 15
  },
  "hsl": {
    "h": 138.333,
    "s": 81.818,
    "l": 8.627
  },
  "oklch": {
    "l": 0.24415,
    "c": 0.06171,
    "h": 149.7
  },
  "luminance": 0.01578
}

Semantic roles & 50–950 ramp

primary
#04280F
secondary
#6B1D53
accent
#30BBF8
background
#F4F5F4
surface
#E7EAE7
border
#C3C6C3
text
#010501
muted
#777977

Preview Lab

Preview with #04280F

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

Preview Lab → · Contrast checker → · Palette generator →

#04280F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva