#302A07#302A07

#302A07 is a dark, muted yellow. Relative luminance 0.023; OKLCH L 28.4% C 0.051 H 99.4°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#302A07
RGBrgb(48, 42, 7)
HSLhsl(51, 75%, 11%)
HSVhsv(51, 85%, 19%)
CMYKcmyk(0%, 12.5%, 85.4%, 81.2%)
CIE-LABlab(16.99, -2.21, 21.64)
CIE-LCHlch(16.99, 21.75, 95.84°)
OKLaboklab(28.36% -0.0084 0.0508)
OKLCHoklch(28.36% 0.051 99.4)
XYZxyz(2.0853, 2.2997, 0.5350)
Luminance0.0230 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A07 #070D30
analogous
#301507 #302A07 #213007
triadic
#302A07 #07302A #2A0730
tetradic
#302A07 #073015 #070D30 #300721
square
#302A07 #073015 #070D30 #300721
split-complementary
#302A07 #072130 #150730
monochromatic
#1B1704 #1B1704 #302A07 #65590F #9B8717

Accessibility & contrast

On white

14.38
#302A07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#302A07 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A07
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A07#FFFFFF#000000##FFFFFF
##302A071.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2903
Deuteranopia (green-blind)
#312B09
Tritanopia (blue-blind)
#342623
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #302a07;
/* rgb */ color: rgb(48, 42, 7);
/* oklch */ color: oklch(28.4% 0.051 99.4);
Tailwind
colors: {
  custom: {
    50: '#6a634a',
    500: '#302a07',
    950: '#000000',
  },
}
SCSS
$custom: #302a07;
$custom-light: #6a634a;
$custom-dark: #000000;
JSON
{
  "hex": "#302a07",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 7
  },
  "hsl": {
    "h": 51.22,
    "s": 74.545,
    "l": 10.784
  },
  "oklch": {
    "l": 0.28363,
    "c": 0.05148,
    "h": 99.4
  },
  "luminance": 0.023
}

Semantic roles & 50–950 ramp

primary
#302A07
secondary
#232E70
accent
#52F137
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#060501
muted
#7A7977

Preview Lab

Preview with #302A07

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

Preview Lab → · Contrast checker → · Palette generator →

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