#3B22A6#3B22A6

#3B22A6 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.194 H 280.9°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#3B22A6
RGBrgb(59, 34, 166)
HSLhsl(251, 66%, 39%)
HSVhsv(251, 80%, 65%)
CMYKcmyk(64.5%, 79.5%, 0%, 34.9%)
CIE-LABlab(26.23, 48.00, -66.13)
CIE-LCHlch(26.23, 81.71, 305.97°)
OKLaboklab(38.56% 0.0366 -0.1909)
OKLCHoklch(38.56% 0.194 280.9)
XYZxyz(9.2564, 4.8263, 36.5128)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B22A6 #8DA622
analogous
#224BA6 #3B22A6 #7D22A6
triadic
#3B22A6 #A63B22 #22A63B
tetradic
#3B22A6 #A6224B #8DA622 #22A67D
square
#3B22A6 #A6224B #8DA622 #22A67D
split-complementary
#3B22A6 #A67D22 #4BA622
monochromatic
#170D40 #291873 #3B22A6 #5030D5 #7B63DF

Accessibility & contrast

On white

10.68
#3B22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3B22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B22A6
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B22A6#FFFFFF#000000##FFFFFF
##3B22A61.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0039A4
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3b22a6;
/* rgb */ color: rgb(59, 34, 166);
/* oklch */ color: oklch(38.6% 0.194 280.9);
Tailwind
colors: {
  custom: {
    50: '#8061c2',
    500: '#3b22a6',
    950: '#000000',
  },
}
SCSS
$custom: #3b22a6;
$custom-light: #8061c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3b22a6",
  "rgb": {
    "r": 59,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 251.364,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38556,
    "c": 0.19434,
    "h": 280.9
  },
  "luminance": 0.04827
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3B22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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