#3B247A#3B247A

#3B247A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.138 H 289.4°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#3B247A
RGBrgb(59, 36, 122)
HSLhsl(256, 54%, 31%)
HSVhsv(256, 70%, 48%)
CMYKcmyk(51.6%, 70.5%, 0%, 52.2%)
CIE-LABlab(22.29, 33.45, -45.33)
CIE-LCHlch(22.29, 56.34, 306.42°)
OKLaboklab(34.46% 0.0458 -0.13)
OKLCHoklch(34.46% 0.138 289.4)
XYZxyz(5.9463, 3.5964, 18.7894)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B247A #637A24
analogous
#24387A #3B247A #66247A
triadic
#3B247A #7A3B24 #247A3B
tetradic
#3B247A #7A2438 #637A24 #247A66
square
#3B247A #7A2438 #637A24 #247A66
split-complementary
#3B247A #7A6624 #387A24
monochromatic
#0D081B #24164B #3B247A #5232A9 #6F4ECB

Accessibility & contrast

On white

12.21
#3B247A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3B247A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B247A
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B247A#FFFFFF#000000##FFFFFF
##3B247A1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#253A4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3b247a;
/* rgb */ color: rgb(59, 36, 122);
/* oklch */ color: oklch(34.5% 0.138 289.4);
Tailwind
colors: {
  custom: {
    50: '#7760a1',
    500: '#3b247a',
    950: '#000000',
  },
}
SCSS
$custom: #3b247a;
$custom-light: #7760a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b247a",
  "rgb": {
    "r": 59,
    "g": 36,
    "b": 122
  },
  "hsl": {
    "h": 256.047,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34463,
    "c": 0.13784,
    "h": 289.4
  },
  "luminance": 0.03597
}

Semantic roles & 50–950 ramp

primary
#3B247A
secondary
#93AC4D
accent
#DE4AB6
background
#F7F5FA
surface
#EEEAF3
border
#C9C6CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3B247A

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

Preview Lab → · Contrast checker → · Palette generator →

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