#3A227F#3A227F

#3A227F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.147 H 288.0°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#3A227F
RGBrgb(58, 34, 127)
HSLhsl(255, 58%, 32%)
HSVhsv(255, 73%, 50%)
CMYKcmyk(54.3%, 73.2%, 0%, 50.2%)
CIE-LABlab(22.22, 35.97, -48.63)
CIE-LCHlch(22.22, 60.49, 306.49°)
OKLaboklab(34.52% 0.0453 -0.1397)
OKLCHoklch(34.52% 0.147 288)
XYZxyz(6.1466, 3.5756, 20.4408)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A227F #677F22
analogous
#22397F #3A227F #69227F
triadic
#3A227F #7F3A22 #227F3A
tetradic
#3A227F #7F2239 #677F22 #227F69
square
#3A227F #7F2239 #677F22 #227F69
split-complementary
#3A227F #7F6922 #397F22
monochromatic
#0E081E #24154F #3A227F #502FAF #6E4CCF

Accessibility & contrast

On white

12.24
#3A227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3A227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A227F
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A227F#FFFFFF#000000##FFFFFF
##3A227F1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#1F3A4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a227f;
/* rgb */ color: rgb(58, 34, 127);
/* oklch */ color: oklch(34.5% 0.147 288.0);
Tailwind
colors: {
  custom: {
    50: '#785fa5',
    500: '#3a227f',
    950: '#000000',
  },
}
SCSS
$custom: #3a227f;
$custom-light: #785fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a227f",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 255.484,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34524,
    "c": 0.14689,
    "h": 288
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#3A227F
secondary
#97B24B
accent
#E147B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3A227F

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

Preview Lab → · Contrast checker → · Palette generator →

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