#2A2F04#2A2F04

#2A2F04 is a dark, moderate yellow. Relative luminance 0.025; OKLCH L 29.1% C 0.062 H 116.2°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#2A2F04
RGBrgb(42, 47, 4)
HSLhsl(67, 84%, 10%)
HSVhsv(67, 91%, 18%)
CMYKcmyk(10.6%, 0%, 91.5%, 81.6%)
CIE-LABlab(18.07, -8.98, 24.02)
CIE-LCHlch(18.07, 25.64, 110.49°)
OKLaboklab(29.07% -0.0274 0.0557)
OKLCHoklch(29.07% 0.062 116.2)
XYZxyz(1.9933, 2.5341, 0.4990)
Luminance0.0253 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F04 #09042F
analogous
#2F1F04 #2A2F04 #142F04
triadic
#2A2F04 #042A2F #2F042A
tetradic
#2A2F04 #042F1F #09042F #2F0414
square
#2A2F04 #042F1F #09042F #2F0414
split-complementary
#2A2F04 #04142F #1F042F
monochromatic
#191C02 #191C02 #2A2F04 #5C6709 #8FA00E

Accessibility & contrast

On white

13.94
#2A2F04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2A2F04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F04
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F04#FFFFFF#000000##FFFFFF
##2A2F041.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332C00
Deuteranopia (green-blind)
#332C07
Tritanopia (blue-blind)
#2D2C27
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a2f04;
/* rgb */ color: rgb(42, 47, 4);
/* oklch */ color: oklch(29.1% 0.062 116.2);
Tailwind
colors: {
  custom: {
    50: '#656749',
    500: '#2a2f04',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f04;
$custom-light: #656749;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f04",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 4
  },
  "hsl": {
    "h": 66.977,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.29066,
    "c": 0.06207,
    "h": 116.2
  },
  "luminance": 0.02534
}

Semantic roles & 50–950 ramp

primary
#2A2F04
secondary
#271D72
accent
#2DFB45
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060601
muted
#7A7A77

Preview Lab

Preview with #2A2F04

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

Preview Lab → · Contrast checker → · Palette generator →

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