#3F2B8A#3F2B8A

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

Color values

HEX#3F2B8A
RGBrgb(63, 43, 138)
HSLhsl(253, 52%, 35%)
HSVhsv(253, 69%, 54%)
CMYKcmyk(54.3%, 68.8%, 0%, 45.9%)
CIE-LABlab(25.62, 35.06, -49.95)
CIE-LCHlch(25.62, 61.02, 305.07°)
OKLaboklab(37.39% 0.0422 -0.1434)
OKLCHoklch(37.39% 0.15 286.4)
XYZxyz(7.4999, 4.6191, 24.5362)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2B8A #768A2B
analogous
#2B468A #3F2B8A #6E2B8A
triadic
#3F2B8A #8A3F2B #2B8A3F
tetradic
#3F2B8A #8A2B46 #768A2B #2B8A6E
square
#3F2B8A #8A2B46 #768A2B #2B8A6E
split-complementary
#3F2B8A #8A6E2B #468A2B
monochromatic
#140E2D #2A1C5B #3F2B8A #543AB9 #7861CE

Accessibility & contrast

On white

10.92
#3F2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F2B8A
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2B8A#FFFFFF#000000##FFFFFF
##3F2B8A1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#214356
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f2b8a;
/* rgb */ color: rgb(63, 43, 138);
/* oklch */ color: oklch(37.4% 0.150 286.4);
Tailwind
colors: {
  custom: {
    50: '#7c66ad',
    500: '#3f2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #3f2b8a;
$custom-light: #7c66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2b8a",
  "rgb": {
    "r": 63,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 252.632,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3739,
    "c": 0.14951,
    "h": 286.4
  },
  "luminance": 0.04619
}

Semantic roles & 50–950 ramp

primary
#3F2B8A
secondary
#A2B45D
accent
#DC4CBE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3F2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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