#3A227C#3A227C

#3A227C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.143 H 288.7°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#3A227C
RGBrgb(58, 34, 124)
HSLhsl(256, 57%, 31%)
HSVhsv(256, 73%, 49%)
CMYKcmyk(53.2%, 72.6%, 0%, 51.4%)
CIE-LABlab(21.94, 35.04, -47.18)
CIE-LCHlch(21.94, 58.77, 306.60°)
OKLaboklab(34.24% 0.0459 -0.1355)
OKLCHoklch(34.24% 0.143 288.7)
XYZxyz(5.9540, 3.4986, 19.4264)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A227C #647C22
analogous
#22377C #3A227C #67227C
triadic
#3A227C #7C3A22 #227C3A
tetradic
#3A227C #7C2237 #647C22 #227C67
square
#3A227C #7C2237 #647C22 #227C67
split-complementary
#3A227C #7C6722 #377C22
monochromatic
#0D081C #24154C #3A227C #502FAC #6E4BCE

Accessibility & contrast

On white

12.35
#3A227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3A227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A227C
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A227C#FFFFFF#000000##FFFFFF
##3A227C1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#22394C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a227c;
/* rgb */ color: rgb(58, 34, 124);
/* oklch */ color: oklch(34.2% 0.143 288.7);
Tailwind
colors: {
  custom: {
    50: '#775fa3',
    500: '#3a227c',
    950: '#000000',
  },
}
SCSS
$custom: #3a227c;
$custom-light: #775fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a227c",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 256,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34242,
    "c": 0.14304,
    "h": 288.7
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#3A227C
secondary
#94AF4B
accent
#E048B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3A227C

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

Preview Lab → · Contrast checker → · Palette generator →

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