#3B2298#3B2298

#3B2298 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.178 H 283.2°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#3B2298
RGBrgb(59, 34, 152)
HSLhsl(253, 63%, 36%)
HSVhsv(253, 78%, 60%)
CMYKcmyk(61.2%, 77.6%, 0%, 40.4%)
CIE-LABlab(24.77, 43.78, -60.02)
CIE-LCHlch(24.77, 74.29, 306.11°)
OKLaboklab(37.09% 0.0406 -0.173)
OKLCHoklch(37.09% 0.178 283.2)
XYZxyz(8.0414, 4.3403, 30.1137)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B2298 #7F9822
analogous
#224498 #3B2298 #762298
triadic
#3B2298 #983B22 #22983B
tetradic
#3B2298 #982244 #7F9822 #229876
square
#3B2298 #982244 #7F9822 #229876
split-complementary
#3B2298 #987622 #449822
monochromatic
#140C34 #281766 #3B2298 #4E2DCA #755ADA

Accessibility & contrast

On white

11.24
#3B2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3B2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B2298
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B2298#FFFFFF#000000##FFFFFF
##3B22981.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3b2298;
/* rgb */ color: rgb(59, 34, 152);
/* oklch */ color: oklch(37.1% 0.178 283.2);
Tailwind
colors: {
  custom: {
    50: '#7d61b7',
    500: '#3b2298',
    950: '#000000',
  },
}
SCSS
$custom: #3b2298;
$custom-light: #7d61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3b2298",
  "rgb": {
    "r": 59,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 252.712,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37093,
    "c": 0.17773,
    "h": 283.2
  },
  "luminance": 0.04341
}

Semantic roles & 50–950 ramp

primary
#3B2298
secondary
#A9BE57
accent
#E641C3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3B2298

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

Preview Lab → · Contrast checker → · Palette generator →

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