#2A3104#2A3104

#2A3104 is a dark, moderate yellow. Relative luminance 0.027; OKLCH L 29.6% C 0.065 H 118.3°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#2A3104
RGBrgb(42, 49, 4)
HSLhsl(69, 85%, 10%)
HSVhsv(69, 92%, 19%)
CMYKcmyk(14.3%, 0%, 91.8%, 80.8%)
CIE-LABlab(18.79, -10.21, 24.87)
CIE-LCHlch(18.79, 26.89, 112.32°)
OKLaboklab(29.64% -0.0308 0.0571)
OKLCHoklch(29.64% 0.065 118.3)
XYZxyz(2.0751, 2.6977, 0.5262)
Luminance0.0270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3104 #0B0431
analogous
#312104 #2A3104 #133104
triadic
#2A3104 #042A31 #31042A
tetradic
#2A3104 #043121 #0B0431 #310413
square
#2A3104 #043121 #0B0431 #310413
split-complementary
#2A3104 #041331 #210431
monochromatic
#181C02 #181C02 #2A3104 #5A6A09 #8BA20D

Accessibility & contrast

On white

13.64
#2A3104 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2A3104 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3104
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3104#FFFFFF#000000##FFFFFF
##2A31041.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#352E00
Deuteranopia (green-blind)
#342E07
Tritanopia (blue-blind)
#2D2E29
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a3104;
/* rgb */ color: rgb(42, 49, 4);
/* oklch */ color: oklch(29.6% 0.065 118.3);
Tailwind
colors: {
  custom: {
    50: '#656949',
    500: '#2a3104',
    950: '#000000',
  },
}
SCSS
$custom: #2a3104;
$custom-light: #656949;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3104",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 4
  },
  "hsl": {
    "h": 69.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.29643,
    "c": 0.06485,
    "h": 118.3
  },
  "luminance": 0.02698
}

Semantic roles & 50–950 ramp

primary
#2A3104
secondary
#2B1D73
accent
#2DFB4D
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060601
muted
#7A7A77

Preview Lab

Preview with #2A3104

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

Preview Lab → · Contrast checker → · Palette generator →

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