#2A281E#2A281E

#2A281E is a dark, near-neutral yellow. Relative luminance 0.021; OKLCH L 27.6% C 0.018 H 98.0°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#2A281E
RGBrgb(42, 40, 30)
HSLhsl(50, 17%, 14%)
HSVhsv(50, 29%, 16%)
CMYKcmyk(0%, 4.8%, 28.6%, 83.5%)
CIE-LABlab(16.02, -1.19, 6.93)
CIE-LCHlch(16.02, 7.03, 99.77°)
OKLaboklab(27.56% -0.0025 0.0177)
OKLCHoklch(27.56% 0.018 98)
XYZxyz(1.9480, 2.1036, 1.5315)
Luminance0.0210 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A281E #1E202A
analogous
#2A221E #2A281E #262A1E
triadic
#2A281E #1E2A28 #281E2A
tetradic
#2A281E #1E2A22 #1E202A #2A1E26
square
#2A281E #1E2A22 #1E202A #2A1E26
split-complementary
#2A281E #1E262A #221E2A
monochromatic
#12110D #12110D #2A281E #4E4A38 #716C51

Accessibility & contrast

On white

14.78
#2A281E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2A281E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A281E
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A281E#FFFFFF#000000##FFFFFF
##2A281E1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A271D
Deuteranopia (green-blind)
#2B281E
Tritanopia (blue-blind)
#2C2725
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a281e;
/* rgb */ color: rgb(42, 40, 30);
/* oklch */ color: oklch(27.6% 0.018 98.0);
Tailwind
colors: {
  custom: {
    50: '#636159',
    500: '#2a281e',
    950: '#000000',
  },
}
SCSS
$custom: #2a281e;
$custom-light: #636159;
$custom-dark: #000000;
JSON
{
  "hex": "#2a281e",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 30
  },
  "hsl": {
    "h": 50,
    "s": 16.667,
    "l": 14.118
  },
  "oklch": {
    "l": 0.27563,
    "c": 0.01784,
    "h": 98
  },
  "luminance": 0.02104
}

Semantic roles & 50–950 ramp

primary
#2A281E
secondary
#484C5B
accent
#7BB96E
background
#F5F5F5
surface
#EAE9E9
border
#C6C5C5
text
#050503
muted
#797978

Preview Lab

Preview with #2A281E

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

Preview Lab → · Contrast checker → · Palette generator →

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