#3B22A5#3B22A5

#3B22A5 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.193 H 281.0°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#3B22A5
RGBrgb(59, 34, 165)
HSLhsl(251, 66%, 39%)
HSVhsv(251, 79%, 65%)
CMYKcmyk(64.2%, 79.4%, 0%, 35.3%)
CIE-LABlab(26.13, 47.70, -65.70)
CIE-LCHlch(26.13, 81.19, 305.98°)
OKLaboklab(38.45% 0.0369 -0.1896)
OKLCHoklch(38.45% 0.193 281)
XYZxyz(9.1650, 4.7898, 36.0316)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B22A5 #8CA522
analogous
#224BA5 #3B22A5 #7D22A5
triadic
#3B22A5 #A53B22 #22A53B
tetradic
#3B22A5 #A5224B #8CA522 #22A57D
square
#3B22A5 #A5224B #8CA522 #22A57D
split-complementary
#3B22A5 #A57D22 #4BA522
monochromatic
#170D40 #291872 #3B22A5 #4F30D4 #7A63DF

Accessibility & contrast

On white

10.73
#3B22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3B22A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B22A5
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B22A5#FFFFFF#000000##FFFFFF
##3B22A51.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3b22a5;
/* rgb */ color: rgb(59, 34, 165);
/* oklch */ color: oklch(38.5% 0.193 281.0);
Tailwind
colors: {
  custom: {
    50: '#8061c1',
    500: '#3b22a5',
    950: '#000000',
  },
}
SCSS
$custom: #3b22a5;
$custom-light: #8061c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b22a5",
  "rgb": {
    "r": 59,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 251.45,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3845,
    "c": 0.19317,
    "h": 281
  },
  "luminance": 0.0479
}

Semantic roles & 50–950 ramp

primary
#3B22A5
secondary
#B1C45F
accent
#E93FC8
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3B22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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