#302C38#302C38

#302C38 is a dark, muted violet. Relative luminance 0.027; OKLCH L 30.2% C 0.022 H 300.3°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#302C38
RGBrgb(48, 44, 56)
HSLhsl(260, 12%, 20%)
HSVhsv(260, 21%, 22%)
CMYKcmyk(14.3%, 21.4%, 0%, 78%)
CIE-LABlab(18.87, 4.75, -7.01)
CIE-LCHlch(18.87, 8.46, 304.13°)
OKLaboklab(30.24% 0.0111 -0.019)
OKLCHoklch(30.24% 0.022 300.3)
XYZxyz(2.8333, 2.7153, 4.1154)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C38 #34382C
analogous
#2C2E38 #302C38 #362C38
triadic
#302C38 #38302C #2C3830
tetradic
#302C38 #382C2E #34382C #2C3836
square
#302C38 #382C2E #34382C #2C3836
split-complementary
#302C38 #38362C #2E382C
monochromatic
#0F0D11 #131116 #302C38 #4D475A #6B627D

Accessibility & contrast

On white

13.61
#302C38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#302C38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C38
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C38#FFFFFF#000000##FFFFFF
##302C381.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2E39
Deuteranopia (green-blind)
#2A2E38
Tritanopia (blue-blind)
#2F2E30
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #302c38;
/* rgb */ color: rgb(48, 44, 56);
/* oklch */ color: oklch(30.2% 0.022 300.3);
Tailwind
colors: {
  custom: {
    50: '#68656e',
    500: '#302c38',
    950: '#000000',
  },
}
SCSS
$custom: #302c38;
$custom-light: #68656e;
$custom-dark: #000000;
JSON
{
  "hex": "#302c38",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 56
  },
  "hsl": {
    "h": 260,
    "s": 12,
    "l": 19.608
  },
  "oklch": {
    "l": 0.30237,
    "c": 0.02201,
    "h": 300.3
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#302C38
secondary
#636858
accent
#B5739F
background
#F6F6F6
surface
#EBEBEB
border
#C6C6C6
text
#060507
muted
#7A7A7A

Preview Lab

Preview with #302C38

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

Preview Lab → · Contrast checker → · Palette generator →

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