#303828#303828

#303828 is a dark, muted yellow-green. Relative luminance 0.036; OKLCH L 32.8% C 0.029 H 129.5°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#303828
RGBrgb(48, 56, 40)
HSLhsl(90, 17%, 19%)
HSVhsv(90, 29%, 22%)
CMYKcmyk(14.3%, 0%, 28.6%, 78%)
CIE-LABlab(22.34, -6.95, 8.92)
CIE-LCHlch(22.34, 11.31, 127.95°)
OKLaboklab(32.8% -0.0187 0.0226)
OKLCHoklch(32.8% 0.029 129.5)
XYZxyz(3.0160, 3.6099, 2.5450)
Luminance0.0361 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303828 #302838
analogous
#383828 #303828 #283828
triadic
#303828 #283038 #382830
tetradic
#303828 #283838 #302838 #382828
square
#303828 #283838 #302838 #382828
split-complementary
#303828 #282838 #382838
monochromatic
#0F120D #11140F #303828 #4F5C42 #6D7F5B

Accessibility & contrast

On white

12.20
#303828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#303828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303828
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303828#FFFFFF#000000##FFFFFF
##3038281.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3627
Deuteranopia (green-blind)
#383529
Tritanopia (blue-blind)
#313734
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #303828;
/* rgb */ color: rgb(48, 56, 40);
/* oklch */ color: oklch(32.8% 0.029 129.5);
Tailwind
colors: {
  custom: {
    50: '#686e62',
    500: '#303828',
    950: '#000000',
  },
}
SCSS
$custom: #303828;
$custom-light: #686e62;
$custom-dark: #000000;
JSON
{
  "hex": "#303828",
  "rgb": {
    "r": 48,
    "g": 56,
    "b": 40
  },
  "hsl": {
    "h": 90,
    "s": 16.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.32801,
    "c": 0.02935,
    "h": 129.5
  },
  "luminance": 0.0361
}

Semantic roles & 50–950 ramp

primary
#303828
secondary
#5E5369
accent
#6EB994
background
#F6F6F5
surface
#EBEBEA
border
#C6C6C6
text
#060705
muted
#7A7A79

Preview Lab

Preview with #303828

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

Preview Lab → · Contrast checker → · Palette generator →

#303828 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva