#2A4E0F#2A4E0F

#2A4E0F is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.3% C 0.099 H 134.9°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#2A4E0F
RGBrgb(42, 78, 15)
HSLhsl(94, 68%, 18%)
HSVhsv(94, 81%, 31%)
CMYKcmyk(46.2%, 0%, 80.8%, 69.4%)
CIE-LABlab(29.35, -25.03, 31.26)
CIE-LCHlch(29.35, 40.04, 128.68°)
OKLaboklab(38.26% -0.0699 0.0702)
OKLCHoklch(38.26% 0.099 134.9)
XYZxyz(3.7654, 5.9753, 1.4068)
Luminance0.0598 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E0F #330F4E
analogous
#494E0F #2A4E0F #0F4E13
triadic
#2A4E0F #0F2A4E #4E0F2A
tetradic
#2A4E0F #0F494E #330F4E #4E130F
square
#2A4E0F #0F494E #330F4E #4E130F
split-complementary
#2A4E0F #130F4E #4E0F49
monochromatic
#0E1A05 #0E1B05 #2A4E0F #468119 #61B523

Accessibility & contrast

On white

9.57
#2A4E0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A4E0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E0F
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E0F#FFFFFF#000000##FFFFFF
##2A4E0F1.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514704
Deuteranopia (green-blind)
#4C4415
Tritanopia (blue-blind)
#294B42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4e0f;
/* rgb */ color: rgb(42, 78, 15);
/* oklch */ color: oklch(38.3% 0.099 134.9);
Tailwind
colors: {
  custom: {
    50: '#678052',
    500: '#2a4e0f',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e0f;
$custom-light: #678052;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e0f",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 15
  },
  "hsl": {
    "h": 94.286,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38257,
    "c": 0.09909,
    "h": 134.9
  },
  "luminance": 0.05976
}

Semantic roles & 50–950 ramp

primary
#2A4E0F
secondary
#633188
accent
#3DEBA0
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A4E0F

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

Preview Lab → · Contrast checker → · Palette generator →

#2A4E0F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva