#3A304C#3A304C

#3A304C is a dark, muted violet. Relative luminance 0.035; OKLCH L 33.3% C 0.050 H 300.1°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#3A304C
RGBrgb(58, 48, 76)
HSLhsl(261, 23%, 24%)
HSVhsv(261, 37%, 30%)
CMYKcmyk(23.7%, 36.8%, 0%, 70.2%)
CIE-LABlab(22.07, 11.34, -15.62)
CIE-LCHlch(22.07, 19.30, 305.99°)
OKLaboklab(33.27% 0.0251 -0.0432)
OKLCHoklch(33.27% 0.05 300.1)
XYZxyz(4.1061, 3.5352, 7.3021)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A304C #424C30
analogous
#30344C #3A304C #48304C
triadic
#3A304C #4C3A30 #304C3A
tetradic
#3A304C #4C3034 #424C30 #304C48
square
#3A304C #4C3034 #424C30 #304C48
split-complementary
#3A304C #4C4830 #344C30
monochromatic
#0E0C13 #1D1826 #3A304C #574872 #735F97

Accessibility & contrast

On white

12.30
#3A304C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3A304C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A304C
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A304C#FFFFFF#000000##FFFFFF
##3A304C1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A354D
Deuteranopia (green-blind)
#2B354B
Tritanopia (blue-blind)
#37343A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a304c;
/* rgb */ color: rgb(58, 48, 76);
/* oklch */ color: oklch(33.3% 0.050 300.1);
Tailwind
colors: {
  custom: {
    50: '#70687e',
    500: '#3a304c',
    950: '#000000',
  },
}
SCSS
$custom: #3a304c;
$custom-light: #70687e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a304c",
  "rgb": {
    "r": 58,
    "g": 48,
    "b": 76
  },
  "hsl": {
    "h": 261.429,
    "s": 22.581,
    "l": 24.314
  },
  "oklch": {
    "l": 0.33265,
    "c": 0.04992,
    "h": 300.1
  },
  "luminance": 0.03535
}

Semantic roles & 50–950 ramp

primary
#3A304C
secondary
#717D5B
accent
#BF69A0
background
#F6F6F7
surface
#ECEBEE
border
#C7C6C9
text
#07060A
muted
#7A7A7C

Preview Lab

Preview with #3A304C

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

Preview Lab → · Contrast checker → · Palette generator →

#3A304C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva