#045C2E#045C2E

#045C2E is a dark, moderate green. Relative luminance 0.079; OKLCH L 41.7% C 0.106 H 152.6°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#045C2E
RGBrgb(4, 92, 46)
HSLhsl(149, 92%, 19%)
HSVhsv(149, 96%, 36%)
CMYKcmyk(95.7%, 0%, 50%, 63.9%)
CIE-LABlab(33.73, -35.21, 19.95)
CIE-LCHlch(33.73, 40.47, 150.46°)
OKLaboklab(41.68% -0.0944 0.0489)
OKLCHoklch(41.68% 0.106 152.6)
XYZxyz(4.3699, 7.8768, 3.8743)
Luminance0.0788 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#045C2E #5C0432
analogous
#065C04 #045C2E #045C5A
triadic
#045C2E #2E045C #5C2E04
tetradic
#045C2E #04065C #5C0432 #5C5A04
square
#045C2E #04065C #5C0432 #5C5A04
split-complementary
#045C2E #5A045C #5C0406
monochromatic
#011D0F #012111 #045C2E #07974B #09D169

Accessibility & contrast

On white

8.15
#045C2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#045C2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #045C2E
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##045C2E#FFFFFF#000000##FFFFFF
##045C2E1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C532A
Deuteranopia (green-blind)
#534D31
Tritanopia (blue-blind)
#005B51
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #045c2e;
/* rgb */ color: rgb(4, 92, 46);
/* oklch */ color: oklch(41.7% 0.106 152.6);
Tailwind
colors: {
  custom: {
    50: '#5a8b67',
    500: '#045c2e',
    950: '#000000',
  },
}
SCSS
$custom: #045c2e;
$custom-light: #5a8b67;
$custom-dark: #000000;
JSON
{
  "hex": "#045c2e",
  "rgb": {
    "r": 4,
    "g": 92,
    "b": 46
  },
  "hsl": {
    "h": 148.636,
    "s": 91.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.41682,
    "c": 0.10631,
    "h": 152.6
  },
  "luminance": 0.07877
}

Semantic roles & 50–950 ramp

primary
#045C2E
secondary
#9A2261
accent
#2999FF
background
#F5F8F6
surface
#E9F0EB
border
#C5CBC6
text
#040C06
muted
#797D7A

Preview Lab

Preview with #045C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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