#302B0B#302B0B

#302B0B is a dark, muted yellow. Relative luminance 0.024; OKLCH L 28.7% C 0.049 H 100.4°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#302B0B
RGBrgb(48, 43, 11)
HSLhsl(52, 63%, 12%)
HSVhsv(52, 77%, 19%)
CMYKcmyk(0%, 10.4%, 77.1%, 81.2%)
CIE-LABlab(17.37, -2.57, 20.46)
CIE-LCHlch(17.37, 20.62, 97.16°)
OKLaboklab(28.68% -0.0088 0.0478)
OKLCHoklch(28.68% 0.049 100.4)
XYZxyz(2.1433, 2.3804, 0.6631)
Luminance0.0238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302B0B #0B1030
analogous
#30190B #302B0B #23300B
triadic
#302B0B #0B302B #2B0B30
tetradic
#302B0B #0B3019 #0B1030 #300B23
square
#302B0B #0B3019 #0B1030 #300B23
split-complementary
#302B0B #0B2330 #190B30
monochromatic
#191606 #191606 #302B0B #625816 #948422

Accessibility & contrast

On white

14.23
#302B0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#302B0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302B0B
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302B0B#FFFFFF#000000##FFFFFF
##302B0B1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302A07
Deuteranopia (green-blind)
#312C0D
Tritanopia (blue-blind)
#342724
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #302b0b;
/* rgb */ color: rgb(48, 43, 11);
/* oklch */ color: oklch(28.7% 0.049 100.4);
Tailwind
colors: {
  custom: {
    50: '#6a644c',
    500: '#302b0b',
    950: '#000000',
  },
}
SCSS
$custom: #302b0b;
$custom-light: #6a644c;
$custom-dark: #000000;
JSON
{
  "hex": "#302b0b",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 11
  },
  "hsl": {
    "h": 51.892,
    "s": 62.712,
    "l": 11.569
  },
  "oklch": {
    "l": 0.28679,
    "c": 0.04857,
    "h": 100.4
  },
  "luminance": 0.0238
}

Semantic roles & 50–950 ramp

primary
#302B0B
secondary
#2A336D
accent
#58E642
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#060501
muted
#7A7977

Preview Lab

Preview with #302B0B

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

Preview Lab → · Contrast checker → · Palette generator →

#302B0B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva