#302836#302836

#302836 is a dark, muted violet. Relative luminance 0.024; OKLCH L 29.2% C 0.027 H 310.5°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#302836
RGBrgb(48, 40, 54)
HSLhsl(274, 15%, 18%)
HSVhsv(274, 26%, 21%)
CMYKcmyk(11.1%, 25.9%, 0%, 78.8%)
CIE-LABlab(17.52, 7.02, -7.66)
CIE-LCHlch(17.52, 10.39, 312.50°)
OKLaboklab(29.17% 0.0177 -0.0208)
OKLCHoklch(29.17% 0.027 310.5)
XYZxyz(2.6435, 2.4123, 3.8157)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302836 #2E3628
analogous
#292836 #302836 #362835
triadic
#302836 #363028 #283630
tetradic
#302836 #362928 #2E3628 #283536
square
#302836 #362928 #2E3628 #283536
split-complementary
#302836 #353628 #283629
monochromatic
#100D12 #110E13 #302836 #4F4259 #6F5C7C

Accessibility & contrast

On white

14.17
#302836 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#302836 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302836
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302836#FFFFFF#000000##FFFFFF
##3028361.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262B37
Deuteranopia (green-blind)
#272B36
Tritanopia (blue-blind)
#2F2A2D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #302836;
/* rgb */ color: rgb(48, 40, 54);
/* oklch */ color: oklch(29.2% 0.027 310.5);
Tailwind
colors: {
  custom: {
    50: '#68616d',
    500: '#302836',
    950: '#000000',
  },
}
SCSS
$custom: #302836;
$custom-light: #68616d;
$custom-dark: #000000;
JSON
{
  "hex": "#302836",
  "rgb": {
    "r": 48,
    "g": 40,
    "b": 54
  },
  "hsl": {
    "h": 274.286,
    "s": 14.894,
    "l": 18.431
  },
  "oklch": {
    "l": 0.29165,
    "c": 0.02733,
    "h": 310.5
  },
  "luminance": 0.02412
}

Semantic roles & 50–950 ramp

primary
#302836
secondary
#5C6753
accent
#B8708F
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060507
muted
#7A797A

Preview Lab

Preview with #302836

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

Preview Lab → · Contrast checker → · Palette generator →

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