#302B0F#302B0F

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

Color values

HEX#302B0F
RGBrgb(48, 43, 15)
HSLhsl(51, 52%, 12%)
HSVhsv(51, 69%, 19%)
CMYKcmyk(0%, 10.4%, 68.7%, 81.2%)
CIE-LABlab(17.42, -2.21, 18.60)
CIE-LCHlch(17.42, 18.73, 96.79°)
OKLaboklab(28.73% -0.0072 0.0436)
OKLCHoklch(28.73% 0.044 99.3)
XYZxyz(2.1691, 2.3907, 0.7990)
Luminance0.0239 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302B0F #0F1430
analogous
#301B0F #302B0F #25300F
triadic
#302B0F #0F302B #2B0F30
tetradic
#302B0F #0F301B #0F1430 #300F25
square
#302B0F #0F301B #0F1430 #300F25
split-complementary
#302B0F #0F2530 #1B0F30
monochromatic
#171507 #171507 #302B0F #5F551E #8D7F2C

Accessibility & contrast

On white

14.21
#302B0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302B0F
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302B0F#FFFFFF#000000##FFFFFF
##302B0F1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2A0C
Deuteranopia (green-blind)
#312C10
Tritanopia (blue-blind)
#342825
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #302b0f;
/* rgb */ color: rgb(48, 43, 15);
/* oklch */ color: oklch(28.7% 0.044 99.3);
Tailwind
colors: {
  custom: {
    50: '#69644e',
    500: '#302b0f',
    950: '#000000',
  },
}
SCSS
$custom: #302b0f;
$custom-light: #69644e;
$custom-dark: #000000;
JSON
{
  "hex": "#302b0f",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 15
  },
  "hsl": {
    "h": 50.909,
    "s": 52.381,
    "l": 12.353
  },
  "oklch": {
    "l": 0.28732,
    "c": 0.04421,
    "h": 99.3
  },
  "luminance": 0.02391
}

Semantic roles & 50–950 ramp

primary
#302B0F
secondary
#313A6A
accent
#62DC4C
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#060501
muted
#7A7977

Preview Lab

Preview with #302B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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