#3F2A8B#3F2A8B

#3F2A8B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.3% C 0.152 H 286.4°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#3F2A8B
RGBrgb(63, 42, 139)
HSLhsl(253, 54%, 35%)
HSVhsv(253, 70%, 55%)
CMYKcmyk(54.7%, 69.8%, 0%, 45.5%)
CIE-LABlab(25.49, 35.96, -50.78)
CIE-LCHlch(25.49, 62.22, 305.31°)
OKLaboklab(37.33% 0.043 -0.1459)
OKLCHoklch(37.33% 0.152 286.4)
XYZxyz(7.5367, 4.5764, 24.9073)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2A8B #768B2A
analogous
#2A458B #3F2A8B #6F2A8B
triadic
#3F2A8B #8B3F2A #2A8B3F
tetradic
#3F2A8B #8B2A45 #768B2A #2A8B6F
square
#3F2A8B #8B2A45 #768B2A #2A8B6F
split-complementary
#3F2A8B #8B6F2A #458B2A
monochromatic
#140E2D #2A1C5C #3F2A8B #5438BA #7860CF

Accessibility & contrast

On white

10.96
#3F2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3F2A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2A8B
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2A8B#FFFFFF#000000##FFFFFF
##3F2A8B1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#204357
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f2a8b;
/* rgb */ color: rgb(63, 42, 139);
/* oklch */ color: oklch(37.3% 0.152 286.4);
Tailwind
colors: {
  custom: {
    50: '#7c65ae',
    500: '#3f2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #3f2a8b;
$custom-light: #7c65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2a8b",
  "rgb": {
    "r": 63,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 252.99,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37325,
    "c": 0.15208,
    "h": 286.4
  },
  "luminance": 0.04577
}

Semantic roles & 50–950 ramp

primary
#3F2A8B
secondary
#A2B55C
accent
#DD4BBD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3F2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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