#045F2E#045F2E

#045F2E is a dark, moderate green. Relative luminance 0.084; OKLCH L 42.6% C 0.110 H 151.9°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#045F2E
RGBrgb(4, 95, 46)
HSLhsl(148, 92%, 19%)
HSVhsv(148, 96%, 37%)
CMYKcmyk(95.8%, 0%, 51.6%, 62.7%)
CIE-LABlab(34.82, -36.36, 21.34)
CIE-LCHlch(34.82, 42.16, 149.60°)
OKLaboklab(42.59% -0.0974 0.0521)
OKLCHoklch(42.59% 0.11 151.9)
XYZxyz(4.6350, 8.4069, 3.9626)
Luminance0.0841 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#045F2E #5F0435
analogous
#085F04 #045F2E #045F5C
triadic
#045F2E #2E045F #5F2E04
tetradic
#045F2E #04085F #5F0435 #5F5C04
square
#045F2E #04085F #5F0435 #5F5C04
split-complementary
#045F2E #5C045F #5F0408
monochromatic
#011D0E #022412 #045F2E #069A4A #09D467

Accessibility & contrast

On white

7.83
#045F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#045F2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #045F2E
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##045F2E#FFFFFF#000000##FFFFFF
##045F2E1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F562A
Deuteranopia (green-blind)
#564F32
Tritanopia (blue-blind)
#005D53
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #045f2e;
/* rgb */ color: rgb(4, 95, 46);
/* oklch */ color: oklch(42.6% 0.110 151.9);
Tailwind
colors: {
  custom: {
    50: '#5b8d67',
    500: '#045f2e',
    950: '#000000',
  },
}
SCSS
$custom: #045f2e;
$custom-light: #5b8d67;
$custom-dark: #000000;
JSON
{
  "hex": "#045f2e",
  "rgb": {
    "r": 4,
    "g": 95,
    "b": 46
  },
  "hsl": {
    "h": 147.692,
    "s": 91.919,
    "l": 19.412
  },
  "oklch": {
    "l": 0.42587,
    "c": 0.11048,
    "h": 151.9
  },
  "luminance": 0.08407
}

Semantic roles & 50–950 ramp

primary
#045F2E
secondary
#9D2264
accent
#299CFF
background
#F5F8F6
surface
#E9F0EB
border
#C5CBC6
text
#050C06
muted
#797D7A

Preview Lab

Preview with #045F2E

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

Preview Lab → · Contrast checker → · Palette generator →

#045F2E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva