#3F0F5A#3F0F5A

#3F0F5A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.127 H 309.7°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#3F0F5A
RGBrgb(63, 15, 90)
HSLhsl(278, 71%, 21%)
HSVhsv(278, 83%, 35%)
CMYKcmyk(30%, 83.3%, 0%, 64.7%)
CIE-LABlab(16.19, 36.12, -34.34)
CIE-LCHlch(16.19, 49.84, 316.45°)
OKLaboklab(29.38% 0.0808 -0.0974)
OKLCHoklch(29.38% 0.127 309.7)
XYZxyz(4.0658, 2.1367, 9.8691)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F0F5A #2A5A0F
analogous
#190F5A #3F0F5A #5A0F4F
triadic
#3F0F5A #5A3F0F #0F5A3F
tetradic
#3F0F5A #5A190F #2A5A0F #0F4F5A
square
#3F0F5A #5A190F #2A5A0F #0F4F5A
split-complementary
#3F0F5A #4F5A0F #0F5A19
monochromatic
#12041A #1A0626 #3F0F5A #64188E #8820C3

Accessibility & contrast

On white

14.71
#3F0F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3F0F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F0F5A
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F0F5A#FFFFFF#000000##FFFFFF
##3F0F5A1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002958
Tritanopia (blue-blind)
#3B2234
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3f0f5a;
/* rgb */ color: rgb(63, 15, 90);
/* oklch */ color: oklch(29.4% 0.127 309.7);
Tailwind
colors: {
  custom: {
    50: '#785489',
    500: '#3f0f5a',
    950: '#000000',
  },
}
SCSS
$custom: #3f0f5a;
$custom-light: #785489;
$custom-dark: #000000;
JSON
{
  "hex": "#3f0f5a",
  "rgb": {
    "r": 63,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 278.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29379,
    "c": 0.12659,
    "h": 309.7
  },
  "luminance": 0.02137
}

Semantic roles & 50–950 ramp

primary
#3F0F5A
secondary
#559431
accent
#EE3A7B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F0F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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