#2A2F0C#2A2F0C

#2A2F0C is a dark, muted yellow. Relative luminance 0.026; OKLCH L 29.2% C 0.054 H 116.8°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#2A2F0C
RGBrgb(42, 47, 12)
HSLhsl(69, 59%, 12%)
HSVhsv(69, 74%, 18%)
CMYKcmyk(10.6%, 0%, 74.5%, 81.6%)
CIE-LABlab(18.15, -8.30, 20.81)
CIE-LCHlch(18.15, 22.41, 111.75°)
OKLaboklab(29.15% -0.0244 0.0484)
OKLCHoklch(29.15% 0.054 116.8)
XYZxyz(2.0378, 2.5518, 0.7330)
Luminance0.0255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F0C #110C2F
analogous
#2F230C #2A2F0C #192F0C
triadic
#2A2F0C #0C2A2F #2F0C2A
tetradic
#2A2F0C #0C2F23 #110C2F #2F0C19
square
#2A2F0C #0C2F23 #110C2F #2F0C19
split-complementary
#2A2F0C #0C192F #230C2F
monochromatic
#161806 #161806 #2A2F0C #566018 #819125

Accessibility & contrast

On white

13.90
#2A2F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2F0C
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F0C#FFFFFF#000000##FFFFFF
##2A2F0C1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332C08
Deuteranopia (green-blind)
#322D0E
Tritanopia (blue-blind)
#2D2C28
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a2f0c;
/* rgb */ color: rgb(42, 47, 12);
/* oklch */ color: oklch(29.2% 0.054 116.8);
Tailwind
colors: {
  custom: {
    50: '#65674d',
    500: '#2a2f0c',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f0c;
$custom-light: #65674d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f0c",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 12
  },
  "hsl": {
    "h": 68.571,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.29155,
    "c": 0.05417,
    "h": 116.8
  },
  "luminance": 0.02552
}

Semantic roles & 50–950 ramp

primary
#2A2F0C
secondary
#352C6B
accent
#45E35C
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#050601
muted
#7A7A77

Preview Lab

Preview with #2A2F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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