#3A264C#3A264C

#3A264C is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.1% C 0.070 H 307.1°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#3A264C
RGBrgb(58, 38, 76)
HSLhsl(272, 33%, 22%)
HSVhsv(272, 50%, 30%)
CMYKcmyk(23.7%, 50%, 0%, 70.2%)
CIE-LABlab(19.26, 18.13, -20.02)
CIE-LCHlch(19.26, 27.01, 312.17°)
OKLaboklab(31.13% 0.0422 -0.0558)
OKLCHoklch(31.13% 0.07 307.1)
XYZxyz(3.7423, 2.8076, 7.1809)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A264C #384C26
analogous
#27264C #3A264C #4C264B
triadic
#3A264C #4C3A26 #264C3A
tetradic
#3A264C #4C2726 #384C26 #264B4C
square
#3A264C #4C2726 #384C26 #264B4C
split-complementary
#3A264C #4B4C26 #264C27
monochromatic
#100A14 #1B1223 #3A264C #593A75 #784F9E

Accessibility & contrast

On white

13.45
#3A264C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3A264C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A264C
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A264C#FFFFFF#000000##FFFFFF
##3A264C1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2E4D
Deuteranopia (green-blind)
#222F4B
Tritanopia (blue-blind)
#372C35
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a264c;
/* rgb */ color: rgb(58, 38, 76);
/* oklch */ color: oklch(31.1% 0.070 307.1);
Tailwind
colors: {
  custom: {
    50: '#71617e',
    500: '#3a264c',
    950: '#000000',
  },
}
SCSS
$custom: #3a264c;
$custom-light: #71617e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a264c",
  "rgb": {
    "r": 58,
    "g": 38,
    "b": 76
  },
  "hsl": {
    "h": 271.579,
    "s": 33.333,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31134,
    "c": 0.06997,
    "h": 307.1
  },
  "luminance": 0.02808
}

Semantic roles & 50–950 ramp

primary
#3A264C
secondary
#667F4F
accent
#C95E91
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08050A
muted
#7B797C

Preview Lab

Preview with #3A264C

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

Preview Lab → · Contrast checker → · Palette generator →

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