#302A38#302A38

#302A38 is a dark, muted violet. Relative luminance 0.026; OKLCH L 29.7% C 0.026 H 304.4°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#302A38
RGBrgb(48, 42, 56)
HSLhsl(266, 14%, 19%)
HSVhsv(266, 25%, 22%)
CMYKcmyk(14.3%, 25%, 0%, 78%)
CIE-LABlab(18.23, 6.15, -7.97)
CIE-LCHlch(18.23, 10.06, 307.64°)
OKLaboklab(29.74% 0.0148 -0.0217)
OKLCHoklch(29.74% 0.026 304.4)
XYZxyz(2.7606, 2.5698, 4.0912)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A38 #32382A
analogous
#2A2B38 #302A38 #372A38
triadic
#302A38 #38302A #2A3830
tetradic
#302A38 #382A2B #32382A #2A3837
square
#302A38 #382A2B #32382A #2A3837
split-complementary
#302A38 #38372A #2B382A
monochromatic
#0F0D11 #121015 #302A38 #4E445B #6C5E7E

Accessibility & contrast

On white

13.87
#302A38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#302A38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A38
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A38#FFFFFF#000000##FFFFFF
##302A381.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282C39
Deuteranopia (green-blind)
#292D38
Tritanopia (blue-blind)
#2F2C2F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #302a38;
/* rgb */ color: rgb(48, 42, 56);
/* oklch */ color: oklch(29.7% 0.026 304.4);
Tailwind
colors: {
  custom: {
    50: '#68636e',
    500: '#302a38',
    950: '#000000',
  },
}
SCSS
$custom: #302a38;
$custom-light: #68636e;
$custom-dark: #000000;
JSON
{
  "hex": "#302a38",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 56
  },
  "hsl": {
    "h": 265.714,
    "s": 14.286,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29745,
    "c": 0.02624,
    "h": 304.4
  },
  "luminance": 0.0257
}

Semantic roles & 50–950 ramp

primary
#302A38
secondary
#606855
accent
#B77199
background
#F6F5F6
surface
#EBEAEB
border
#C6C6C6
text
#060507
muted
#7A797A

Preview Lab

Preview with #302A38

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

Preview Lab → · Contrast checker → · Palette generator →

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