#3B22B1#3B22B1

#3B22B1 is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.7% C 0.207 H 279.3°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#3B22B1
RGBrgb(59, 34, 177)
HSLhsl(250, 68%, 41%)
HSVhsv(250, 81%, 69%)
CMYKcmyk(66.7%, 80.8%, 0%, 30.6%)
CIE-LABlab(27.43, 51.26, -70.78)
CIE-LCHlch(27.43, 87.39, 305.91°)
OKLaboklab(39.74% 0.0334 -0.2044)
OKLCHoklch(39.74% 0.207 279.3)
XYZxyz(10.3089, 5.2473, 42.0560)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B22B1 #98B122
analogous
#2250B1 #3B22B1 #8322B1
triadic
#3B22B1 #B13B22 #22B13B
tetradic
#3B22B1 #B12250 #98B122 #22B183
square
#3B22B1 #B12250 #98B122 #22B183
split-complementary
#3B22B1 #B18322 #50B122
monochromatic
#190E4A #2A187E #3B22B1 #5438D9 #806BE3

Accessibility & contrast

On white

10.25
#3B22B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#3B22B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B22B1
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B22B1#FFFFFF#000000##FFFFFF
##3B22B11.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B5
Deuteranopia (green-blind)
#003BAF
Tritanopia (blue-blind)
#004E6A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3b22b1;
/* rgb */ color: rgb(59, 34, 177);
/* oklch */ color: oklch(39.7% 0.207 279.3);
Tailwind
colors: {
  custom: {
    50: '#8262ca',
    500: '#3b22b1',
    950: '#000000',
  },
}
SCSS
$custom: #3b22b1;
$custom-light: #8262ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3b22b1",
  "rgb": {
    "r": 59,
    "g": 34,
    "b": 177
  },
  "hsl": {
    "h": 250.49,
    "s": 67.773,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39738,
    "c": 0.20708,
    "h": 279.3
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#3B22B1
secondary
#B7C966
accent
#EB3DCC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3B22B1

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

Preview Lab → · Contrast checker → · Palette generator →

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