#3F1462#3F1462

#3F1462 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.129 H 304.8°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#3F1462
RGBrgb(63, 20, 98)
HSLhsl(273, 66%, 23%)
HSVhsv(273, 80%, 38%)
CMYKcmyk(35.7%, 79.6%, 0%, 61.6%)
CIE-LABlab(17.64, 35.94, -37.32)
CIE-LCHlch(17.64, 51.81, 313.92°)
OKLaboklab(30.62% 0.0739 -0.1062)
OKLCHoklch(30.62% 0.129 304.8)
XYZxyz(4.5042, 2.4389, 11.7864)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1462 #376214
analogous
#181462 #3F1462 #62145E
triadic
#3F1462 #623F14 #14623F
tetradic
#3F1462 #621814 #376214 #145E62
square
#3F1462 #621814 #376214 #145E62
split-complementary
#3F1462 #5E6214 #146218
monochromatic
#100519 #1E0A2F #3F1462 #601E95 #8029C8

Accessibility & contrast

On white

14.11
#3F1462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3F1462 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1462
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1462#FFFFFF#000000##FFFFFF
##3F14621.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002B60
Tritanopia (blue-blind)
#38273A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f1462;
/* rgb */ color: rgb(63, 20, 98);
/* oklch */ color: oklch(30.6% 0.129 304.8);
Tailwind
colors: {
  custom: {
    50: '#78578f',
    500: '#3f1462',
    950: '#000000',
  },
}
SCSS
$custom: #3f1462;
$custom-light: #78578f;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1462",
  "rgb": {
    "r": 63,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 273.077,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30616,
    "c": 0.12941,
    "h": 304.8
  },
  "luminance": 0.02439
}

Semantic roles & 50–950 ramp

primary
#3F1462
secondary
#649938
accent
#E93F8B
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F1462

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

Preview Lab → · Contrast checker → · Palette generator →

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