#3B229A#3B229A

#3B229A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.180 H 282.9°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#3B229A
RGBrgb(59, 34, 154)
HSLhsl(253, 64%, 37%)
HSVhsv(253, 78%, 60%)
CMYKcmyk(61.7%, 77.9%, 0%, 39.6%)
CIE-LABlab(24.97, 44.39, -60.91)
CIE-LCHlch(24.97, 75.37, 306.08°)
OKLaboklab(37.3% 0.0401 -0.1756)
OKLCHoklch(37.3% 0.18 282.9)
XYZxyz(8.2066, 4.4064, 30.9837)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B229A #819A22
analogous
#22459A #3B229A #77229A
triadic
#3B229A #9A3B22 #229A3B
tetradic
#3B229A #9A2245 #819A22 #229A77
square
#3B229A #9A2245 #819A22 #229A77
split-complementary
#3B229A #9A7722 #459A22
monochromatic
#150C36 #281768 #3B229A #4E2DCC #765BDB

Accessibility & contrast

On white

11.16
#3B229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3B229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B229A
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B229A#FFFFFF#000000##FFFFFF
##3B229A1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003798
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3b229a;
/* rgb */ color: rgb(59, 34, 154);
/* oklch */ color: oklch(37.3% 0.180 282.9);
Tailwind
colors: {
  custom: {
    50: '#7d61b9',
    500: '#3b229a',
    950: '#000000',
  },
}
SCSS
$custom: #3b229a;
$custom-light: #7d61b9;
$custom-dark: #000000;
JSON
{
  "hex": "#3b229a",
  "rgb": {
    "r": 59,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 252.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37299,
    "c": 0.18013,
    "h": 282.9
  },
  "luminance": 0.04407
}

Semantic roles & 50–950 ramp

primary
#3B229A
secondary
#AABF58
accent
#E741C4
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3B229A

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

Preview Lab → · Contrast checker → · Palette generator →

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