#302C42#302C42

#302C42 is a dark, muted violet. Relative luminance 0.028; OKLCH L 30.7% C 0.039 H 292.3°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#302C42
RGBrgb(48, 44, 66)
HSLhsl(251, 20%, 22%)
HSVhsv(251, 33%, 26%)
CMYKcmyk(27.3%, 33.3%, 0%, 74.1%)
CIE-LABlab(19.32, 7.55, -13.19)
CIE-LCHlch(19.32, 15.20, 299.80°)
OKLaboklab(30.74% 0.0149 -0.0364)
OKLCHoklch(30.74% 0.039 292.3)
XYZxyz(3.1027, 2.8230, 5.5346)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C42 #3E422C
analogous
#2C3342 #302C42 #3B2C42
triadic
#302C42 #42302C #2C4230
tetradic
#302C42 #422C33 #3E422C #2C423B
square
#302C42 #422C33 #3E422C #2C423B
split-complementary
#302C42 #423B2C #33422C
monochromatic
#0D0C12 #15141D #302C42 #4B4467 #655D8B

Accessibility & contrast

On white

13.42
#302C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#302C42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C42
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C42#FFFFFF#000000##FFFFFF
##302C421.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272F43
Deuteranopia (green-blind)
#272E41
Tritanopia (blue-blind)
#2C3034
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #302c42;
/* rgb */ color: rgb(48, 44, 66);
/* oklch */ color: oklch(30.7% 0.039 292.3);
Tailwind
colors: {
  custom: {
    50: '#686576',
    500: '#302c42',
    950: '#000000',
  },
}
SCSS
$custom: #302c42;
$custom-light: #686576;
$custom-dark: #000000;
JSON
{
  "hex": "#302c42",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 66
  },
  "hsl": {
    "h": 250.909,
    "s": 20,
    "l": 21.569
  },
  "oklch": {
    "l": 0.30739,
    "c": 0.03936,
    "h": 292.3
  },
  "luminance": 0.02823
}

Semantic roles & 50–950 ramp

primary
#302C42
secondary
#6E7357
accent
#BD6BAE
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060508
muted
#7A7A7B

Preview Lab

Preview with #302C42

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

Preview Lab → · Contrast checker → · Palette generator →

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