#2A3814#2A3814

#2A3814 is a dark, moderate yellow-green. Relative luminance 0.034; OKLCH L 31.9% C 0.060 H 127.2°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#2A3814
RGBrgb(42, 56, 20)
HSLhsl(83, 47%, 15%)
HSVhsv(83, 64%, 22%)
CMYKcmyk(25%, 0%, 64.3%, 78%)
CIE-LABlab(21.47, -12.92, 20.34)
CIE-LCHlch(21.47, 24.09, 122.42°)
OKLaboklab(31.86% -0.0363 0.0478)
OKLCHoklch(31.86% 0.06 127.2)
XYZxyz(2.4953, 3.3711, 1.1809)
Luminance0.0337 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3814 #221438
analogous
#383414 #2A3814 #183814
triadic
#2A3814 #142A38 #38142A
tetradic
#2A3814 #143834 #221438 #381418
square
#2A3814 #143834 #221438 #381418
split-complementary
#2A3814 #141838 #341438
monochromatic
#111708 #111708 #2A3814 #4C6524 #6E9234

Accessibility & contrast

On white

12.54
#2A3814 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2A3814 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3814
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3814#FFFFFF#000000##FFFFFF
##2A38141.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B3410
Deuteranopia (green-blind)
#393316
Tritanopia (blue-blind)
#2C3530
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a3814;
/* rgb */ color: rgb(42, 56, 20);
/* oklch */ color: oklch(31.9% 0.060 127.2);
Tailwind
colors: {
  custom: {
    50: '#656e53',
    500: '#2a3814',
    950: '#000000',
  },
}
SCSS
$custom: #2a3814;
$custom-light: #656e53;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3814",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 20
  },
  "hsl": {
    "h": 83.333,
    "s": 47.368,
    "l": 14.902
  },
  "oklch": {
    "l": 0.3186,
    "c": 0.06005,
    "h": 127.2
  },
  "luminance": 0.03371
}

Semantic roles & 50–950 ramp

primary
#2A3814
secondary
#4E3870
accent
#51D785
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#050702
muted
#7A7A78

Preview Lab

Preview with #2A3814

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

Preview Lab → · Contrast checker → · Palette generator →

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