#302838#302838

#302838 is a dark, muted violet. Relative luminance 0.024; OKLCH L 29.3% C 0.031 H 307.3°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#302838
RGBrgb(48, 40, 56)
HSLhsl(270, 17%, 19%)
HSVhsv(270, 29%, 22%)
CMYKcmyk(14.3%, 28.6%, 0%, 78%)
CIE-LABlab(17.61, 7.55, -8.92)
CIE-LCHlch(17.61, 11.68, 310.23°)
OKLaboklab(29.26% 0.0185 -0.0243)
OKLCHoklch(29.26% 0.031 307.3)
XYZxyz(2.6914, 2.4315, 4.0682)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302838 #303828
analogous
#282838 #302838 #382838
triadic
#302838 #383028 #283830
tetradic
#302838 #382828 #303828 #283838
square
#302838 #382828 #303828 #283838
split-complementary
#302838 #383828 #283828
monochromatic
#0F0D12 #110F14 #302838 #4F425C #6D5B7F

Accessibility & contrast

On white

14.13
#302838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#302838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302838
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302838#FFFFFF#000000##FFFFFF
##3028381.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252B39
Deuteranopia (green-blind)
#272B38
Tritanopia (blue-blind)
#2F2A2E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #302838;
/* rgb */ color: rgb(48, 40, 56);
/* oklch */ color: oklch(29.3% 0.031 307.3);
Tailwind
colors: {
  custom: {
    50: '#68616e',
    500: '#302838',
    950: '#000000',
  },
}
SCSS
$custom: #302838;
$custom-light: #68616e;
$custom-dark: #000000;
JSON
{
  "hex": "#302838",
  "rgb": {
    "r": 48,
    "g": 40,
    "b": 56
  },
  "hsl": {
    "h": 270,
    "s": 16.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29263,
    "c": 0.03056,
    "h": 307.3
  },
  "luminance": 0.02431
}

Semantic roles & 50–950 ramp

primary
#302838
secondary
#5E6953
accent
#B96E94
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060507
muted
#7A797A

Preview Lab

Preview with #302838

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

Preview Lab → · Contrast checker → · Palette generator →

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