#3A227D#3A227D

#3A227D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.144 H 288.5°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#3A227D
RGBrgb(58, 34, 125)
HSLhsl(256, 57%, 31%)
HSVhsv(256, 73%, 49%)
CMYKcmyk(53.6%, 72.8%, 0%, 51%)
CIE-LABlab(22.03, 35.35, -47.66)
CIE-LCHlch(22.03, 59.34, 306.56°)
OKLaboklab(34.34% 0.0457 -0.1369)
OKLCHoklch(34.34% 0.144 288.5)
XYZxyz(6.0175, 3.5240, 19.7612)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A227D #657D22
analogous
#22377D #3A227D #67227D
triadic
#3A227D #7D3A22 #227D3A
tetradic
#3A227D #7D2237 #657D22 #227D67
square
#3A227D #7D2237 #657D22 #227D67
split-complementary
#3A227D #7D6722 #377D22
monochromatic
#0D081D #24154D #3A227D #502FAD #6E4BCE

Accessibility & contrast

On white

12.32
#3A227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A227D
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A227D#FFFFFF#000000##FFFFFF
##3A227D1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#213A4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a227d;
/* rgb */ color: rgb(58, 34, 125);
/* oklch */ color: oklch(34.3% 0.144 288.5);
Tailwind
colors: {
  custom: {
    50: '#785fa3',
    500: '#3a227d',
    950: '#000000',
  },
}
SCSS
$custom: #3a227d;
$custom-light: #785fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a227d",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 255.824,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34335,
    "c": 0.14433,
    "h": 288.5
  },
  "luminance": 0.03524
}

Semantic roles & 50–950 ramp

primary
#3A227D
secondary
#95B04B
accent
#E047B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3A227D

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

Preview Lab → · Contrast checker → · Palette generator →

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