#3B22B4#3B22B4

#3B22B4 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.1% C 0.211 H 278.9°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#3B22B4
RGBrgb(59, 34, 180)
HSLhsl(250, 68%, 42%)
HSVhsv(250, 81%, 71%)
CMYKcmyk(67.2%, 81.1%, 0%, 29.4%)
CIE-LABlab(27.76, 52.14, -72.02)
CIE-LCHlch(27.76, 88.91, 305.90°)
OKLaboklab(40.06% 0.0325 -0.208)
OKLCHoklch(40.06% 0.211 278.9)
XYZxyz(10.6112, 5.3683, 43.6481)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B22B4 #9BB422
analogous
#2252B4 #3B22B4 #8422B4
triadic
#3B22B4 #B43B22 #22B43B
tetradic
#3B22B4 #B42252 #9BB422 #22B484
square
#3B22B4 #B42252 #9BB422 #22B484
split-complementary
#3B22B4 #B48422 #52B422
monochromatic
#190F4D #2A1881 #3B22B4 #553ADA #816DE3

Accessibility & contrast

On white

10.13
#3B22B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#3B22B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B22B4
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B22B4#FFFFFF#000000##FFFFFF
##3B22B41.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B8
Deuteranopia (green-blind)
#003CB1
Tritanopia (blue-blind)
#004F6C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3b22b4;
/* rgb */ color: rgb(59, 34, 180);
/* oklch */ color: oklch(40.1% 0.211 278.9);
Tailwind
colors: {
  custom: {
    50: '#8362cc',
    500: '#3b22b4',
    950: '#000000',
  },
}
SCSS
$custom: #3b22b4;
$custom-light: #8362cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3b22b4",
  "rgb": {
    "r": 59,
    "g": 34,
    "b": 180
  },
  "hsl": {
    "h": 250.274,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40064,
    "c": 0.21052,
    "h": 278.9
  },
  "luminance": 0.05369
}

Semantic roles & 50–950 ramp

primary
#3B22B4
secondary
#B9CA68
accent
#EB3DCD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0514
muted
#7D7A82

Preview Lab

Preview with #3B22B4

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

Preview Lab → · Contrast checker → · Palette generator →

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