#2A3004#2A3004

#2A3004 is a dark, moderate yellow. Relative luminance 0.026; OKLCH L 29.4% C 0.063 H 117.3°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#2A3004
RGBrgb(42, 48, 4)
HSLhsl(68, 85%, 10%)
HSVhsv(68, 92%, 19%)
CMYKcmyk(12.5%, 0%, 91.7%, 81.2%)
CIE-LABlab(18.43, -9.60, 24.45)
CIE-LCHlch(18.43, 26.26, 111.43°)
OKLaboklab(29.35% -0.0291 0.0564)
OKLCHoklch(29.35% 0.063 117.3)
XYZxyz(2.0338, 2.6149, 0.5124)
Luminance0.0261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3004 #0A0430
analogous
#302004 #2A3004 #143004
triadic
#2A3004 #042A30 #30042A
tetradic
#2A3004 #043020 #0A0430 #300414
square
#2A3004 #043020 #0A0430 #300414
split-complementary
#2A3004 #041430 #200430
monochromatic
#191C02 #191C02 #2A3004 #5B6809 #8DA10D

Accessibility & contrast

On white

13.79
#2A3004 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2A3004 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3004
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3004#FFFFFF#000000##FFFFFF
##2A30041.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342D00
Deuteranopia (green-blind)
#332D07
Tritanopia (blue-blind)
#2D2D28
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a3004;
/* rgb */ color: rgb(42, 48, 4);
/* oklch */ color: oklch(29.4% 0.063 117.3);
Tailwind
colors: {
  custom: {
    50: '#656849',
    500: '#2a3004',
    950: '#000000',
  },
}
SCSS
$custom: #2a3004;
$custom-light: #656849;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3004",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 4
  },
  "hsl": {
    "h": 68.182,
    "s": 84.615,
    "l": 10.196
  },
  "oklch": {
    "l": 0.29354,
    "c": 0.06345,
    "h": 117.3
  },
  "luminance": 0.02615
}

Semantic roles & 50–950 ramp

primary
#2A3004
secondary
#291D72
accent
#2DFB49
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060601
muted
#7A7A77

Preview Lab

Preview with #2A3004

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

Preview Lab → · Contrast checker → · Palette generator →

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