#2B310C#2B310C

#2B310C is a dark, muted yellow. Relative luminance 0.027; OKLCH L 29.8% C 0.057 H 117.8°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#2B310C
RGBrgb(43, 49, 12)
HSLhsl(70, 61%, 12%)
HSVhsv(70, 76%, 19%)
CMYKcmyk(12.2%, 0%, 75.5%, 80.8%)
CIE-LABlab(18.96, -9.03, 21.78)
CIE-LCHlch(18.96, 23.58, 112.52°)
OKLaboklab(29.83% -0.0265 0.0502)
OKLCHoklch(29.83% 0.057 117.8)
XYZxyz(2.1610, 2.7368, 0.7622)
Luminance0.0274 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B310C #120C31
analogous
#31250C #2B310C #19310C
triadic
#2B310C #0C2B31 #310C2B
tetradic
#2B310C #0C3125 #120C31 #310C19
square
#2B310C #0C3125 #120C31 #310C19
split-complementary
#2B310C #0C1931 #250C31
monochromatic
#161906 #161906 #2B310C #566218 #819324

Accessibility & contrast

On white

13.57
#2B310C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2B310C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B310C
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B310C#FFFFFF#000000##FFFFFF
##2B310C1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#352E08
Deuteranopia (green-blind)
#342E0F
Tritanopia (blue-blind)
#2E2E29
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b310c;
/* rgb */ color: rgb(43, 49, 12);
/* oklch */ color: oklch(29.8% 0.057 117.8);
Tailwind
colors: {
  custom: {
    50: '#65694d',
    500: '#2b310c',
    950: '#000000',
  },
}
SCSS
$custom: #2b310c;
$custom-light: #65694d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b310c",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 12
  },
  "hsl": {
    "h": 69.73,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.29825,
    "c": 0.05679,
    "h": 117.8
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#2B310C
secondary
#362C6D
accent
#44E45E
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060601
muted
#7A7A77

Preview Lab

Preview with #2B310C

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

Preview Lab → · Contrast checker → · Palette generator →

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