#304238#304238

#304238 is a dark, muted green. Relative luminance 0.048; OKLCH L 36.0% C 0.029 H 160.2°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#304238
RGBrgb(48, 66, 56)
HSLhsl(147, 16%, 22%)
HSVhsv(147, 27%, 26%)
CMYKcmyk(27.3%, 0%, 15.2%, 74.1%)
CIE-LABlab(26.19, -9.67, 3.77)
CIE-LCHlch(26.19, 10.38, 158.70°)
OKLaboklab(36.02% -0.0271 0.0098)
OKLCHoklch(36.02% 0.029 160.2)
XYZxyz(3.8807, 4.8102, 4.4646)
Luminance0.0481 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304238 #42303A
analogous
#314230 #304238 #304241
triadic
#304238 #383042 #423830
tetradic
#304238 #303142 #42303A #424130
square
#304238 #303142 #42303A #424130
split-complementary
#304238 #413042 #423031
monochromatic
#0D120F #161F1A #304238 #4A6556 #648974

Accessibility & contrast

On white

10.70
#304238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#304238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304238
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304238#FFFFFF#000000##FFFFFF
##3042381.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423F37
Deuteranopia (green-blind)
#3E3D39
Tritanopia (blue-blind)
#2D423F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #304238;
/* rgb */ color: rgb(48, 66, 56);
/* oklch */ color: oklch(36.0% 0.029 160.2);
Tailwind
colors: {
  custom: {
    50: '#68766e',
    500: '#304238',
    950: '#000000',
  },
}
SCSS
$custom: #304238;
$custom-light: #68766e;
$custom-dark: #000000;
JSON
{
  "hex": "#304238",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 56
  },
  "hsl": {
    "h": 146.667,
    "s": 15.789,
    "l": 22.353
  },
  "oklch": {
    "l": 0.36016,
    "c": 0.0288,
    "h": 160.2
  },
  "luminance": 0.0481
}

Semantic roles & 50–950 ramp

primary
#304238
secondary
#725C68
accent
#6F98B9
background
#F6F7F6
surface
#EBEDEB
border
#C6C8C6
text
#060807
muted
#7A7B7A

Preview Lab

Preview with #304238

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

Preview Lab → · Contrast checker → · Palette generator →

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