#2A3F12#2A3F12

#2A3F12 is a dark, moderate yellow-green. Relative luminance 0.041; OKLCH L 33.9% C 0.074 H 130.7°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#2A3F12
RGBrgb(42, 63, 18)
HSLhsl(88, 56%, 16%)
HSVhsv(88, 71%, 25%)
CMYKcmyk(33.3%, 0%, 71.4%, 75.3%)
CIE-LABlab(23.97, -17.10, 24.26)
CIE-LCHlch(23.97, 29.68, 125.18°)
OKLaboklab(33.88% -0.0481 0.0559)
OKLCHoklch(33.88% 0.074 130.7)
XYZxyz(2.8415, 4.0908, 1.2121)
Luminance0.0409 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F12 #27123F
analogous
#3F3D12 #2A3F12 #133F12
triadic
#2A3F12 #122A3F #3F122A
tetradic
#2A3F12 #123F3D #27123F #3F1213
square
#2A3F12 #123F3D #27123F #3F1213
split-complementary
#2A3F12 #12133F #3D123F
monochromatic
#101807 #101807 #2A3F12 #4A6F20 #699E2D

Accessibility & contrast

On white

11.55
#2A3F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A3F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F12
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F12#FFFFFF#000000##FFFFFF
##2A3F121.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A0D
Deuteranopia (green-blind)
#3F3815
Tritanopia (blue-blind)
#2B3C36
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a3f12;
/* rgb */ color: rgb(42, 63, 18);
/* oklch */ color: oklch(33.9% 0.074 130.7);
Tailwind
colors: {
  custom: {
    50: '#657452',
    500: '#2a3f12',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f12;
$custom-light: #657452;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f12",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 18
  },
  "hsl": {
    "h": 88,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.33875,
    "c": 0.07377,
    "h": 130.7
  },
  "luminance": 0.04091
}

Semantic roles & 50–950 ramp

primary
#2A3F12
secondary
#543578
accent
#49DF8F
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2A3F12

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

Preview Lab → · Contrast checker → · Palette generator →

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