#3A229F#3A229F

#3A229F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.186 H 281.5°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#3A229F
RGBrgb(58, 34, 159)
HSLhsl(252, 65%, 38%)
HSVhsv(252, 79%, 62%)
CMYKcmyk(63.5%, 78.6%, 0%, 37.6%)
CIE-LABlab(25.40, 45.78, -63.26)
CIE-LCHlch(25.40, 78.09, 305.89°)
OKLaboklab(37.73% 0.0372 -0.1825)
OKLCHoklch(37.73% 0.186 281.5)
XYZxyz(8.5730, 4.5462, 33.2199)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A229F #879F22
analogous
#22489F #3A229F #78229F
triadic
#3A229F #9F3A22 #229F3A
tetradic
#3A229F #9F2248 #879F22 #229F78
square
#3A229F #9F2248 #879F22 #229F78
split-complementary
#3A229F #9F7822 #489F22
monochromatic
#150C3A #28176D #3A229F #4C2DD1 #775FDD

Accessibility & contrast

On white

11.00
#3A229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3A229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A229F
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A229F#FFFFFF#000000##FFFFFF
##3A229F1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a229f;
/* rgb */ color: rgb(58, 34, 159);
/* oklch */ color: oklch(37.7% 0.186 281.5);
Tailwind
colors: {
  custom: {
    50: '#7e61bd',
    500: '#3a229f',
    950: '#000000',
  },
}
SCSS
$custom: #3a229f;
$custom-light: #7e61bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a229f",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 251.52,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37732,
    "c": 0.18626,
    "h": 281.5
  },
  "luminance": 0.04547
}

Semantic roles & 50–950 ramp

primary
#3A229F
secondary
#AEC15B
accent
#E840C8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A229F

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

Preview Lab → · Contrast checker → · Palette generator →

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