#3B22A8#3B22A8

#3B22A8 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.197 H 280.6°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#3B22A8
RGBrgb(59, 34, 168)
HSLhsl(251, 66%, 40%)
HSVhsv(251, 80%, 66%)
CMYKcmyk(64.9%, 79.8%, 0%, 34.1%)
CIE-LABlab(26.45, 48.59, -66.99)
CIE-LCHlch(26.45, 82.76, 305.96°)
OKLaboklab(38.77% 0.036 -0.1933)
OKLCHoklch(38.77% 0.197 280.6)
XYZxyz(9.4413, 4.9003, 37.4865)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B22A8 #8FA822
analogous
#224CA8 #3B22A8 #7E22A8
triadic
#3B22A8 #A83B22 #22A83B
tetradic
#3B22A8 #A8224C #8FA822 #22A87E
square
#3B22A8 #A8224C #8FA822 #22A87E
split-complementary
#3B22A8 #A87E22 #4CA822
monochromatic
#170D42 #291875 #3B22A8 #5032D5 #7C65E0

Accessibility & contrast

On white

10.60
#3B22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3B22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B22A8
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B22A8#FFFFFF#000000##FFFFFF
##3B22A81.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#0039A6
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3b22a8;
/* rgb */ color: rgb(59, 34, 168);
/* oklch */ color: oklch(38.8% 0.197 280.6);
Tailwind
colors: {
  custom: {
    50: '#8062c3',
    500: '#3b22a8',
    950: '#000000',
  },
}
SCSS
$custom: #3b22a8;
$custom-light: #8062c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3b22a8",
  "rgb": {
    "r": 59,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 251.194,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38769,
    "c": 0.19668,
    "h": 280.6
  },
  "luminance": 0.04901
}

Semantic roles & 50–950 ramp

primary
#3B22A8
secondary
#B2C561
accent
#E93FC9
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3B22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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