#3F2A8A#3F2A8A

#3F2A8A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.151 H 286.6°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#3F2A8A
RGBrgb(63, 42, 138)
HSLhsl(253, 53%, 35%)
HSVhsv(253, 70%, 54%)
CMYKcmyk(54.3%, 69.6%, 0%, 45.9%)
CIE-LABlab(25.40, 35.65, -50.30)
CIE-LCHlch(25.40, 61.65, 305.33°)
OKLaboklab(37.23% 0.0431 -0.1445)
OKLCHoklch(37.23% 0.151 286.6)
XYZxyz(7.4639, 4.5473, 24.5242)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2A8A #758A2A
analogous
#2A458A #3F2A8A #6F2A8A
triadic
#3F2A8A #8A3F2A #2A8A3F
tetradic
#3F2A8A #8A2A45 #758A2A #2A8A6F
square
#3F2A8A #8A2A45 #758A2A #2A8A6F
split-complementary
#3F2A8A #8A6F2A #458A2A
monochromatic
#140D2C #2A1C5B #3F2A8A #5438B9 #7860CF

Accessibility & contrast

On white

11.00
#3F2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3F2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2A8A
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2A8A#FFFFFF#000000##FFFFFF
##3F2A8A1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#214256
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f2a8a;
/* rgb */ color: rgb(63, 42, 138);
/* oklch */ color: oklch(37.2% 0.151 286.6);
Tailwind
colors: {
  custom: {
    50: '#7c65ad',
    500: '#3f2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #3f2a8a;
$custom-light: #7c65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2a8a",
  "rgb": {
    "r": 63,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 253.125,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37234,
    "c": 0.15078,
    "h": 286.6
  },
  "luminance": 0.04548
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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