#302236#302236

#302236 is a dark, muted purple. Relative luminance 0.020; OKLCH L 27.8% C 0.041 H 315.5°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#302236
RGBrgb(48, 34, 54)
HSLhsl(282, 23%, 17%)
HSVhsv(282, 37%, 21%)
CMYKcmyk(11.1%, 37%, 0%, 78.8%)
CIE-LABlab(15.69, 11.24, -10.45)
CIE-LCHlch(15.69, 15.35, 317.08°)
OKLaboklab(27.76% 0.0291 -0.0286)
OKLCHoklch(27.76% 0.041 315.5)
XYZxyz(2.4567, 2.0388, 3.7534)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302236 #283622
analogous
#262236 #302236 #362232
triadic
#302236 #363022 #223630
tetradic
#302236 #362622 #283622 #223236
square
#302236 #362622 #283622 #223236
split-complementary
#302236 #323622 #223626
monochromatic
#110C13 #110C13 #302236 #513A5C #735181

Accessibility & contrast

On white

14.92
#302236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#302236 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302236
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302236#FFFFFF#000000##FFFFFF
##3022361.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2637
Deuteranopia (green-blind)
#222835
Tritanopia (blue-blind)
#302429
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #302236;
/* rgb */ color: rgb(48, 34, 54);
/* oklch */ color: oklch(27.8% 0.041 315.5);
Tailwind
colors: {
  custom: {
    50: '#685d6d',
    500: '#302236',
    950: '#000000',
  },
}
SCSS
$custom: #302236;
$custom-light: #685d6d;
$custom-dark: #000000;
JSON
{
  "hex": "#302236",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 54
  },
  "hsl": {
    "h": 282,
    "s": 22.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.27763,
    "c": 0.04076,
    "h": 315.5
  },
  "luminance": 0.02039
}

Semantic roles & 50–950 ramp

primary
#302236
secondary
#54684C
accent
#BF6983
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060407
muted
#7A797A

Preview Lab

Preview with #302236

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

Preview Lab → · Contrast checker → · Palette generator →

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