#302F02#302F02

#302F02 is a dark, moderate yellow. Relative luminance 0.027; OKLCH L 29.7% C 0.062 H 108.3°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#302F02
RGBrgb(48, 47, 2)
HSLhsl(59, 92%, 10%)
HSVhsv(59, 96%, 19%)
CMYKcmyk(0%, 2.1%, 95.8%, 81.2%)
CIE-LABlab(18.65, -5.87, 25.67)
CIE-LCHlch(18.65, 26.34, 102.89°)
OKLaboklab(29.67% -0.0195 0.0589)
OKLCHoklch(29.67% 0.062 108.3)
XYZxyz(2.2465, 2.6659, 0.4536)
Luminance0.0267 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F02 #020330
analogous
#301802 #302F02 #1A3002
triadic
#302F02 #02302F #2F0230
tetradic
#302F02 #023018 #020330 #30021A
square
#302F02 #023018 #020330 #30021A
split-complementary
#302F02 #021A30 #180230
monochromatic
#1D1D01 #1D1D01 #302F02 #6B6904 #A6A207

Accessibility & contrast

On white

13.70
#302F02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#302F02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F02
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F02#FFFFFF#000000##FFFFFF
##302F021.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342D00
Deuteranopia (green-blind)
#352E05
Tritanopia (blue-blind)
#342B27
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #302f02;
/* rgb */ color: rgb(48, 47, 2);
/* oklch */ color: oklch(29.7% 0.062 108.3);
Tailwind
colors: {
  custom: {
    50: '#6a6748',
    500: '#302f02',
    950: '#000000',
  },
}
SCSS
$custom: #302f02;
$custom-light: #6a6748;
$custom-dark: #000000;
JSON
{
  "hex": "#302f02",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 2
  },
  "hsl": {
    "h": 58.696,
    "s": 92,
    "l": 9.804
  },
  "oklch": {
    "l": 0.29672,
    "c": 0.06205,
    "h": 108.3
  },
  "luminance": 0.02666
}

Semantic roles & 50–950 ramp

primary
#302F02
secondary
#191B75
accent
#2DFF29
background
#F6F6F4
surface
#EBEBE6
border
#C6C6C2
text
#070600
muted
#7A7A77

Preview Lab

Preview with #302F02

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

Preview Lab → · Contrast checker → · Palette generator →

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