#2A2F08#2A2F08

#2A2F08 is a dark, muted yellow. Relative luminance 0.025; OKLCH L 29.1% C 0.058 H 116.4°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#2A2F08
RGBrgb(42, 47, 8)
HSLhsl(68, 71%, 11%)
HSVhsv(68, 83%, 18%)
CMYKcmyk(10.6%, 0%, 83%, 81.6%)
CIE-LABlab(18.11, -8.64, 22.44)
CIE-LCHlch(18.11, 24.05, 111.07°)
OKLaboklab(29.11% -0.0258 0.052)
OKLCHoklch(29.11% 0.058 116.4)
XYZxyz(2.0152, 2.5428, 0.6143)
Luminance0.0254 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F08 #0D082F
analogous
#2F2008 #2A2F08 #162F08
triadic
#2A2F08 #082A2F #2F082A
tetradic
#2A2F08 #082F20 #0D082F #2F0816
square
#2A2F08 #082F20 #0D082F #2F0816
split-complementary
#2A2F08 #08162F #20082F
monochromatic
#171A04 #171A04 #2A2F08 #596311 #87981A

Accessibility & contrast

On white

13.92
#2A2F08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2F08
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F08#FFFFFF#000000##FFFFFF
##2A2F081.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332C04
Deuteranopia (green-blind)
#322D0B
Tritanopia (blue-blind)
#2D2C27
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a2f08;
/* rgb */ color: rgb(42, 47, 8);
/* oklch */ color: oklch(29.1% 0.058 116.4);
Tailwind
colors: {
  custom: {
    50: '#65674b',
    500: '#2a2f08',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f08;
$custom-light: #65674b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f08",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 8
  },
  "hsl": {
    "h": 67.692,
    "s": 70.909,
    "l": 10.784
  },
  "oklch": {
    "l": 0.2911,
    "c": 0.05807,
    "h": 116.4
  },
  "luminance": 0.02543
}

Semantic roles & 50–950 ramp

primary
#2A2F08
secondary
#2E256E
accent
#3AEE51
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060601
muted
#7A7A77

Preview Lab

Preview with #2A2F08

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

Preview Lab → · Contrast checker → · Palette generator →

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