#3F2074#3F2074

#3F2074 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.8% C 0.136 H 295.0°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#3F2074
RGBrgb(63, 32, 116)
HSLhsl(262, 57%, 29%)
HSVhsv(262, 72%, 45%)
CMYKcmyk(45.7%, 72.4%, 0%, 54.5%)
CIE-LABlab(21.40, 34.72, -42.93)
CIE-LCHlch(21.40, 55.22, 308.97°)
OKLaboklab(33.77% 0.0573 -0.1228)
OKLCHoklch(33.77% 0.136 295)
XYZxyz(5.7180, 3.3506, 16.8651)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2074 #557420
analogous
#202B74 #3F2074 #692074
triadic
#3F2074 #743F20 #20743F
tetradic
#3F2074 #74202B #557420 #207469
square
#3F2074 #74202B #557420 #207469
split-complementary
#3F2074 #746920 #2B7420
monochromatic
#0D0718 #251344 #3F2074 #592DA4 #7543CB

Accessibility & contrast

On white

12.57
#3F2074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3F2074 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2074
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2074#FFFFFF#000000##FFFFFF
##3F20741.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#003272
Tritanopia (blue-blind)
#303547
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f2074;
/* rgb */ color: rgb(63, 32, 116);
/* oklch */ color: oklch(33.8% 0.136 295.0);
Tailwind
colors: {
  custom: {
    50: '#795e9d',
    500: '#3f2074',
    950: '#000000',
  },
}
SCSS
$custom: #3f2074;
$custom-light: #795e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2074",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 116
  },
  "hsl": {
    "h": 262.143,
    "s": 56.757,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33768,
    "c": 0.13552,
    "h": 295
  },
  "luminance": 0.03351
}

Semantic roles & 50–950 ramp

primary
#3F2074
secondary
#84A848
accent
#E048A8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F2074

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

Preview Lab → · Contrast checker → · Palette generator →

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