#3F1258#3F1258

#3F1258 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.121 H 310.3°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#3F1258
RGBrgb(63, 18, 88)
HSLhsl(279, 66%, 21%)
HSVhsv(279, 80%, 35%)
CMYKcmyk(28.4%, 79.5%, 0%, 65.5%)
CIE-LABlab(16.47, 34.34, -32.53)
CIE-LCHlch(16.47, 47.30, 316.54°)
OKLaboklab(29.53% 0.0782 -0.0922)
OKLCHoklch(29.53% 0.121 310.3)
XYZxyz(4.0273, 2.1940, 9.4420)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1258 #2B5812
analogous
#1C1258 #3F1258 #58124E
triadic
#3F1258 #583F12 #12583F
tetradic
#3F1258 #581C12 #2B5812 #124E58
square
#3F1258 #581C12 #2B5812 #124E58
split-complementary
#3F1258 #4E5812 #12581C
monochromatic
#120519 #1B0825 #3F1258 #631C8B #8827BE

Accessibility & contrast

On white

14.60
#3F1258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#3F1258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1258
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1258#FFFFFF#000000##FFFFFF
##3F12581.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#042957
Tritanopia (blue-blind)
#3C2234
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3f1258;
/* rgb */ color: rgb(63, 18, 88);
/* oklch */ color: oklch(29.5% 0.121 310.3);
Tailwind
colors: {
  custom: {
    50: '#775588',
    500: '#3f1258',
    950: '#000000',
  },
}
SCSS
$custom: #3f1258;
$custom-light: #775588;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1258",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 278.571,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29528,
    "c": 0.12083,
    "h": 310.3
  },
  "luminance": 0.02194
}

Semantic roles & 50–950 ramp

primary
#3F1258
secondary
#569135
accent
#E93F7C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F1258

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

Preview Lab → · Contrast checker → · Palette generator →

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