#334B18#334B18

#334B18 is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 38.1% C 0.082 H 130.7°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#334B18
RGBrgb(51, 75, 24)
HSLhsl(88, 52%, 19%)
HSVhsv(88, 68%, 29%)
CMYKcmyk(32%, 0%, 68%, 70.6%)
CIE-LABlab(28.91, -18.98, 26.75)
CIE-LCHlch(28.91, 32.80, 125.35°)
OKLaboklab(38.07% -0.0533 0.0619)
OKLCHoklch(38.07% 0.082 130.7)
XYZxyz(4.0461, 5.8018, 1.7707)
Luminance0.0580 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334B18 #30184B
analogous
#4B4A18 #334B18 #1A4B18
triadic
#334B18 #18334B #4B1833
tetradic
#334B18 #184B4A #30184B #4B181A
square
#334B18 #184B4A #30184B #4B181A
split-complementary
#334B18 #181A4B #4A184B
monochromatic
#101707 #131D09 #334B18 #537927 #72A836

Accessibility & contrast

On white

9.72
#334B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#334B18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334B18
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334B18#FFFFFF#000000##FFFFFF
##334B181.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4512
Deuteranopia (green-blind)
#4B441C
Tritanopia (blue-blind)
#344840
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #334b18;
/* rgb */ color: rgb(51, 75, 24);
/* oklch */ color: oklch(38.1% 0.082 130.7);
Tailwind
colors: {
  custom: {
    50: '#6d7d57',
    500: '#334b18',
    950: '#000000',
  },
}
SCSS
$custom: #334b18;
$custom-light: #6d7d57;
$custom-dark: #000000;
JSON
{
  "hex": "#334b18",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 24
  },
  "hsl": {
    "h": 88.235,
    "s": 51.515,
    "l": 19.412
  },
  "oklch": {
    "l": 0.38066,
    "c": 0.08171,
    "h": 130.7
  },
  "luminance": 0.05802
}

Semantic roles & 50–950 ramp

primary
#334B18
secondary
#5D3D82
accent
#4DDB90
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #334B18

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

Preview Lab → · Contrast checker → · Palette generator →

#334B18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva