#2B281F#2B281F

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

Color values

HEX#2B281F
RGBrgb(43, 40, 31)
HSLhsl(45, 16%, 15%)
HSVhsv(45, 28%, 17%)
CMYKcmyk(0%, 7%, 27.9%, 83.1%)
CIE-LABlab(16.16, -0.51, 6.44)
CIE-LCHlch(16.16, 6.46, 94.52°)
OKLaboklab(27.7% -0.0005 0.0165)
OKLCHoklch(27.7% 0.016 91.8)
XYZxyz(2.0024, 2.1301, 1.6017)
Luminance0.0213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B281F #1F222B
analogous
#2B221F #2B281F #282B1F
triadic
#2B281F #1F2B28 #281F2B
tetradic
#2B281F #1F2B22 #1F222B #2B1F28
square
#2B281F #1F2B22 #1F222B #2B1F28
split-complementary
#2B281F #1F282B #221F2B
monochromatic
#12110D #12110D #2B281F #4F4939 #726A52

Accessibility & contrast

On white

14.73
#2B281F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2B281F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B281F
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B281F#FFFFFF#000000##FFFFFF
##2B281F1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A281E
Deuteranopia (green-blind)
#2B281F
Tritanopia (blue-blind)
#2D2726
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b281f;
/* rgb */ color: rgb(43, 40, 31);
/* oklch */ color: oklch(27.7% 0.016 91.8);
Tailwind
colors: {
  custom: {
    50: '#64615a',
    500: '#2b281f',
    950: '#000000',
  },
}
SCSS
$custom: #2b281f;
$custom-light: #64615a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b281f",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 31
  },
  "hsl": {
    "h": 45,
    "s": 16.216,
    "l": 14.51
  },
  "oklch": {
    "l": 0.27704,
    "c": 0.01647,
    "h": 91.8
  },
  "luminance": 0.0213
}

Semantic roles & 50–950 ramp

primary
#2B281F
secondary
#494E5C
accent
#81B96F
background
#F6F5F5
surface
#EBE9E9
border
#C6C5C5
text
#050503
muted
#7A7978

Preview Lab

Preview with #2B281F

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

Preview Lab → · Contrast checker → · Palette generator →

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