#042F0F#042F0F

#042F0F is a dark, moderate green. Relative luminance 0.021; OKLCH L 26.8% C 0.073 H 147.7°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#042F0F
RGBrgb(4, 47, 15)
HSLhsl(135, 84%, 10%)
HSVhsv(135, 91%, 18%)
CMYKcmyk(91.5%, 0%, 68.1%, 81.6%)
CIE-LABlab(15.97, -22.92, 16.16)
CIE-LCHlch(15.97, 28.05, 144.82°)
OKLaboklab(26.8% -0.0616 0.0389)
OKLCHoklch(26.8% 0.073 147.7)
XYZxyz(1.1527, 2.0932, 0.7951)
Luminance0.0209 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F0F #2F0424
analogous
#0E2F04 #042F0F #042F25
triadic
#042F0F #0F042F #2F0F04
tetradic
#042F0F #040E2F #2F0424 #2F2504
square
#042F0F #040E2F #2F0424 #2F2504
split-complementary
#042F0F #25042F #2F040E
monochromatic
#021C09 #021C09 #042F0F #096721 #0EA033

Accessibility & contrast

On white

14.80
#042F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#042F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042F0F
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F0F#FFFFFF#000000##FFFFFF
##042F0F1.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302A0C
Deuteranopia (green-blind)
#2B2612
Tritanopia (blue-blind)
#002E28
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #042f0f;
/* rgb */ color: rgb(4, 47, 15);
/* oklch */ color: oklch(26.8% 0.073 147.7);
Tailwind
colors: {
  custom: {
    50: '#4c684e',
    500: '#042f0f',
    950: '#000000',
  },
}
SCSS
$custom: #042f0f;
$custom-light: #4c684e;
$custom-dark: #000000;
JSON
{
  "hex": "#042f0f",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 15
  },
  "hsl": {
    "h": 135.349,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.26796,
    "c": 0.07286,
    "h": 147.7
  },
  "luminance": 0.02093
}

Semantic roles & 50–950 ramp

primary
#042F0F
secondary
#721D5C
accent
#2DC6FB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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