#3F0F58#3F0F58

#3F0F58 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.124 H 310.8°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#3F0F58
RGBrgb(63, 15, 88)
HSLhsl(279, 71%, 20%)
HSVhsv(279, 83%, 35%)
CMYKcmyk(28.4%, 83%, 0%, 65.5%)
CIE-LABlab(16.02, 35.64, -33.27)
CIE-LCHlch(16.02, 48.76, 316.97°)
OKLaboklab(29.21% 0.0813 -0.0943)
OKLCHoklch(29.21% 0.124 310.8)
XYZxyz(3.9818, 2.1031, 9.4268)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F0F58 #28580F
analogous
#1A0F58 #3F0F58 #580F4C
triadic
#3F0F58 #583F0F #0F583F
tetradic
#3F0F58 #581A0F #28580F #0F4C58
square
#3F0F58 #581A0F #28580F #0F4C58
split-complementary
#3F0F58 #4C580F #0F581A
monochromatic
#13041A #1A0624 #3F0F58 #64188C #8A21C1

Accessibility & contrast

On white

14.78
#3F0F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3F0F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F0F58
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F0F58#FFFFFF#000000##FFFFFF
##3F0F581.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002956
Tritanopia (blue-blind)
#3C2133
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3f0f58;
/* rgb */ color: rgb(63, 15, 88);
/* oklch */ color: oklch(29.2% 0.124 310.8);
Tailwind
colors: {
  custom: {
    50: '#775488',
    500: '#3f0f58',
    950: '#000000',
  },
}
SCSS
$custom: #3f0f58;
$custom-light: #775488;
$custom-dark: #000000;
JSON
{
  "hex": "#3f0f58",
  "rgb": {
    "r": 63,
    "g": 15,
    "b": 88
  },
  "hsl": {
    "h": 279.452,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29207,
    "c": 0.12448,
    "h": 310.8
  },
  "luminance": 0.02103
}

Semantic roles & 50–950 ramp

primary
#3F0F58
secondary
#529231
accent
#EE3A78
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F0F58

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

Preview Lab → · Contrast checker → · Palette generator →

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