#2B271B#2B271B

#2B271B is a dark, muted yellow. Relative luminance 0.020; OKLCH L 27.3% C 0.022 H 91.8°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#2B271B
RGBrgb(43, 39, 27)
HSLhsl(45, 23%, 14%)
HSVhsv(45, 37%, 17%)
CMYKcmyk(0%, 9.3%, 37.2%, 83.1%)
CIE-LABlab(15.72, -0.54, 8.62)
CIE-LCHlch(15.72, 8.64, 93.59°)
OKLaboklab(27.32% -0.0007 0.0217)
OKLCHoklch(27.32% 0.022 91.8)
XYZxyz(1.9196, 2.0438, 1.3301)
Luminance0.0204 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B271B #1B1F2B
analogous
#2B1F1B #2B271B #272B1B
triadic
#2B271B #1B2B27 #271B2B
tetradic
#2B271B #1B2B1F #1B1F2B #2B1B27
square
#2B271B #1B2B1F #1B1F2B #2B1B27
split-complementary
#2B271B #1B272B #1F1B2B
monochromatic
#13110C #13110C #2B271B #514933 #766B4A

Accessibility & contrast

On white

14.91
#2B271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2B271B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B271B
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B271B#FFFFFF#000000##FFFFFF
##2B271B1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A261A
Deuteranopia (green-blind)
#2B281B
Tritanopia (blue-blind)
#2E2524
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b271b;
/* rgb */ color: rgb(43, 39, 27);
/* oklch */ color: oklch(27.3% 0.022 91.8);
Tailwind
colors: {
  custom: {
    50: '#646057',
    500: '#2b271b',
    950: '#000000',
  },
}
SCSS
$custom: #2b271b;
$custom-light: #646057;
$custom-dark: #000000;
JSON
{
  "hex": "#2b271b",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 45,
    "s": 22.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.27324,
    "c": 0.02172,
    "h": 91.8
  },
  "luminance": 0.02044
}

Semantic roles & 50–950 ramp

primary
#2B271B
secondary
#444A5E
accent
#7EBF68
background
#F6F5F5
surface
#EBE9E9
border
#C6C5C5
text
#050503
muted
#7A7978

Preview Lab

Preview with #2B271B

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

Preview Lab → · Contrast checker → · Palette generator →

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