#2A2F0F#2A2F0F

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

Color values

HEX#2A2F0F
RGBrgb(42, 47, 15)
HSLhsl(69, 52%, 12%)
HSVhsv(69, 68%, 18%)
CMYKcmyk(10.6%, 0%, 68.1%, 81.6%)
CIE-LABlab(18.19, -8.01, 19.38)
CIE-LCHlch(18.19, 20.97, 112.45°)
OKLaboklab(29.2% -0.0232 0.0453)
OKLCHoklch(29.2% 0.051 117.1)
XYZxyz(2.0576, 2.5598, 0.8375)
Luminance0.0256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F0F #140F2F
analogous
#2F240F #2A2F0F #1A2F0F
triadic
#2A2F0F #0F2A2F #2F0F2A
tetradic
#2A2F0F #0F2F24 #140F2F #2F0F1A
square
#2A2F0F #0F2F24 #140F2F #2F0F1A
split-complementary
#2A2F0F #0F1A2F #240F2F
monochromatic
#151707 #151707 #2A2F0F #535D1E #7D8C2D

Accessibility & contrast

On white

13.89
#2A2F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2F0F
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F0F#FFFFFF#000000##FFFFFF
##2A2F0F1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322C0C
Deuteranopia (green-blind)
#322D11
Tritanopia (blue-blind)
#2D2C28
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a2f0f;
/* rgb */ color: rgb(42, 47, 15);
/* oklch */ color: oklch(29.2% 0.051 117.1);
Tailwind
colors: {
  custom: {
    50: '#64674e',
    500: '#2a2f0f',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f0f;
$custom-light: #64674e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f0f",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 15
  },
  "hsl": {
    "h": 69.375,
    "s": 51.613,
    "l": 12.157
  },
  "oklch": {
    "l": 0.29195,
    "c": 0.05089,
    "h": 117.1
  },
  "luminance": 0.0256
}

Semantic roles & 50–950 ramp

primary
#2A2F0F
secondary
#3A3169
accent
#4DDB63
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#050602
muted
#7A7A78

Preview Lab

Preview with #2A2F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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