#3B2098#3B2098

#3B2098 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.180 H 283.5°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#3B2098
RGBrgb(59, 32, 152)
HSLhsl(254, 65%, 36%)
HSVhsv(254, 79%, 60%)
CMYKcmyk(61.2%, 78.9%, 0%, 40.4%)
CIE-LABlab(24.42, 44.79, -60.60)
CIE-LCHlch(24.42, 75.35, 306.47°)
OKLaboklab(36.85% 0.042 -0.1747)
OKLCHoklch(36.85% 0.18 283.5)
XYZxyz(7.9859, 4.2293, 30.0952)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B2098 #7D9820
analogous
#204198 #3B2098 #772098
triadic
#3B2098 #983B20 #20983B
tetradic
#3B2098 #982041 #7D9820 #209877
square
#3B2098 #982041 #7D9820 #209877
split-complementary
#3B2098 #987720 #419820
monochromatic
#140B33 #271565 #3B2098 #4F2BCB #7557DC

Accessibility & contrast

On white

11.38
#3B2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3B2098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B2098
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B2098#FFFFFF#000000##FFFFFF
##3B20981.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3b2098;
/* rgb */ color: rgb(59, 32, 152);
/* oklch */ color: oklch(36.8% 0.180 283.5);
Tailwind
colors: {
  custom: {
    50: '#7d60b7',
    500: '#3b2098',
    950: '#000000',
  },
}
SCSS
$custom: #3b2098;
$custom-light: #7d60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3b2098",
  "rgb": {
    "r": 59,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 253.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36848,
    "c": 0.17967,
    "h": 283.5
  },
  "luminance": 0.0423
}

Semantic roles & 50–950 ramp

primary
#3B2098
secondary
#A7BF54
accent
#E840C2
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3B2098

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

Preview Lab → · Contrast checker → · Palette generator →

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