#04270D#04270D

#04270D is a very dark, moderate green. Relative luminance 0.015; OKLCH L 24.0% C 0.062 H 148.5°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#04270D
RGBrgb(4, 39, 13)
HSLhsl(135, 81%, 8%)
HSVhsv(135, 90%, 15%)
CMYKcmyk(89.7%, 0%, 66.7%, 84.7%)
CIE-LABlab(12.64, -19.76, 12.84)
CIE-LCHlch(12.64, 23.56, 146.98°)
OKLaboklab(24.03% -0.0531 0.0326)
OKLCHoklch(24.03% 0.062 148.5)
XYZxyz(0.8482, 1.5058, 0.6266)
Luminance0.0151 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04270D #27041E
analogous
#0C2704 #04270D #04271E
triadic
#04270D #0D0427 #270D04
tetradic
#04270D #040C27 #27041E #271E04
square
#04270D #040C27 #27041E #271E04
split-complementary
#04270D #1E0427 #27040C
monochromatic
#031C09 #031C09 #04270D #0A5F20 #0F9632

Accessibility & contrast

On white

16.14
#04270D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#04270D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04270D
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04270D#FFFFFF#000000##FFFFFF
##04270D1.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27230B
Deuteranopia (green-blind)
#23200F
Tritanopia (blue-blind)
#002621
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #04270d;
/* rgb */ color: rgb(4, 39, 13);
/* oklch */ color: oklch(24.0% 0.062 148.5);
Tailwind
colors: {
  custom: {
    50: '#49614d',
    500: '#04270d',
    950: '#000000',
  },
}
SCSS
$custom: #04270d;
$custom-light: #49614d;
$custom-dark: #000000;
JSON
{
  "hex": "#04270d",
  "rgb": {
    "r": 4,
    "g": 39,
    "b": 13
  },
  "hsl": {
    "h": 135.429,
    "s": 81.395,
    "l": 8.431
  },
  "oklch": {
    "l": 0.24032,
    "c": 0.06237,
    "h": 148.5
  },
  "luminance": 0.01506
}

Semantic roles & 50–950 ramp

primary
#04270D
secondary
#6A1D56
accent
#30C4F8
background
#F4F5F4
surface
#E7EAE7
border
#C3C6C3
text
#010501
muted
#777977

Preview Lab

Preview with #04270D

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

Preview Lab → · Contrast checker → · Palette generator →

#04270D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva