#334E0F#334E0F

#334E0F is a dark, moderate yellow-green. Relative luminance 0.062; OKLCH L 38.8% C 0.094 H 130.3°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#334E0F
RGBrgb(51, 78, 15)
HSLhsl(86, 68%, 18%)
HSVhsv(86, 81%, 31%)
CMYKcmyk(34.6%, 0%, 80.8%, 69.4%)
CIE-LABlab(29.88, -21.33, 31.96)
CIE-LCHlch(29.88, 38.42, 123.71°)
OKLaboklab(38.83% -0.0606 0.0715)
OKLCHoklch(38.83% 0.094 130.3)
XYZxyz(4.1758, 6.1869, 1.4260)
Luminance0.0619 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E0F #2A0F4E
analogous
#4E490F #334E0F #134E0F
triadic
#334E0F #0F334E #4E0F33
tetradic
#334E0F #0F4E49 #2A0F4E #4E0F13
square
#334E0F #0F4E49 #2A0F4E #4E0F13
split-complementary
#334E0F #0F134E #490F4E
monochromatic
#111A05 #111B05 #334E0F #558119 #76B523

Accessibility & contrast

On white

9.39
#334E0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#334E0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334E0F
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E0F#FFFFFF#000000##FFFFFF
##334E0F1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524804
Deuteranopia (green-blind)
#4E4615
Tritanopia (blue-blind)
#344A42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334e0f;
/* rgb */ color: rgb(51, 78, 15);
/* oklch */ color: oklch(38.8% 0.094 130.3);
Tailwind
colors: {
  custom: {
    50: '#6e7f52',
    500: '#334e0f',
    950: '#000000',
  },
}
SCSS
$custom: #334e0f;
$custom-light: #6e7f52;
$custom-dark: #000000;
JSON
{
  "hex": "#334e0f",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 15
  },
  "hsl": {
    "h": 85.714,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38832,
    "c": 0.09368,
    "h": 130.3
  },
  "luminance": 0.06187
}

Semantic roles & 50–950 ramp

primary
#334E0F
secondary
#563188
accent
#3DEB88
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #334E0F

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

Preview Lab → · Contrast checker → · Palette generator →

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