#2A281F#2A281F

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

Color values

HEX#2A281F
RGBrgb(42, 40, 31)
HSLhsl(49, 15%, 14%)
HSVhsv(49, 26%, 16%)
CMYKcmyk(0%, 4.8%, 26.2%, 83.5%)
CIE-LABlab(16.05, -1.00, 6.27)
CIE-LCHlch(16.05, 6.35, 99.09°)
OKLaboklab(27.59% -0.0019 0.016)
OKLCHoklch(27.59% 0.016 96.9)
XYZxyz(1.9610, 2.1088, 1.5998)
Luminance0.0211 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A281F #1F212A
analogous
#2A231F #2A281F #272A1F
triadic
#2A281F #1F2A28 #281F2A
tetradic
#2A281F #1F2A23 #1F212A #2A1F27
square
#2A281F #1F2A23 #1F212A #2A1F27
split-complementary
#2A281F #1F272A #231F2A
monochromatic
#12110D #12110D #2A281F #4D4A39 #706B53

Accessibility & contrast

On white

14.77
#2A281F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A281F
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A281F#FFFFFF#000000##FFFFFF
##2A281F1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A271E
Deuteranopia (green-blind)
#2A281F
Tritanopia (blue-blind)
#2C2726
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a281f;
/* rgb */ color: rgb(42, 40, 31);
/* oklch */ color: oklch(27.6% 0.016 96.9);
Tailwind
colors: {
  custom: {
    50: '#63615a',
    500: '#2a281f',
    950: '#000000',
  },
}
SCSS
$custom: #2a281f;
$custom-light: #63615a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a281f",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 31
  },
  "hsl": {
    "h": 49.091,
    "s": 15.068,
    "l": 14.314
  },
  "oklch": {
    "l": 0.27593,
    "c": 0.01617,
    "h": 96.9
  },
  "luminance": 0.02109
}

Semantic roles & 50–950 ramp

primary
#2A281F
secondary
#4A4D5B
accent
#7DB870
background
#F5F5F5
surface
#EAE9E9
border
#C6C5C5
text
#050503
muted
#797978

Preview Lab

Preview with #2A281F

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

Preview Lab → · Contrast checker → · Palette generator →

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