#2A271A#2A271A

#2A271A is a dark, muted yellow. Relative luminance 0.020; OKLCH L 27.2% C 0.023 H 96.7°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#2A271A
RGBrgb(42, 39, 26)
HSLhsl(49, 24%, 13%)
HSVhsv(49, 38%, 16%)
CMYKcmyk(0%, 7.1%, 38.1%, 83.5%)
CIE-LABlab(15.58, -1.22, 9.11)
CIE-LCHlch(15.58, 9.20, 97.63°)
OKLaboklab(27.18% -0.0027 0.0229)
OKLCHoklch(27.18% 0.023 96.7)
XYZxyz(1.8668, 2.0179, 1.2682)
Luminance0.0202 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A271A #1A1D2A
analogous
#2A1F1A #2A271A #252A1A
triadic
#2A271A #1A2A27 #271A2A
tetradic
#2A271A #1A2A1F #1A1D2A #2A1A25
square
#2A271A #1A2A1F #1A1D2A #2A1A25
split-complementary
#2A271A #1A252A #1F1A2A
monochromatic
#13120C #13120C #2A271A #504A31 #766D49

Accessibility & contrast

On white

14.96
#2A271A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2A271A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A271A
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A271A#FFFFFF#000000##FFFFFF
##2A271A1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2619
Deuteranopia (green-blind)
#2A271A
Tritanopia (blue-blind)
#2C2524
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a271a;
/* rgb */ color: rgb(42, 39, 26);
/* oklch */ color: oklch(27.2% 0.023 96.7);
Tailwind
colors: {
  custom: {
    50: '#636056',
    500: '#2a271a',
    950: '#000000',
  },
}
SCSS
$custom: #2a271a;
$custom-light: #636056;
$custom-dark: #000000;
JSON
{
  "hex": "#2a271a",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 26
  },
  "hsl": {
    "h": 48.75,
    "s": 23.529,
    "l": 13.333
  },
  "oklch": {
    "l": 0.27183,
    "c": 0.02302,
    "h": 96.7
  },
  "luminance": 0.02018
}

Semantic roles & 50–950 ramp

primary
#2A271A
secondary
#43485D
accent
#78C068
background
#F5F5F5
surface
#EAE9E9
border
#C6C5C5
text
#050503
muted
#797978

Preview Lab

Preview with #2A271A

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

Preview Lab → · Contrast checker → · Palette generator →

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