#3F155E#3F155E

#3F155E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.124 H 306.6°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#3F155E
RGBrgb(63, 21, 94)
HSLhsl(275, 63%, 23%)
HSVhsv(275, 78%, 37%)
CMYKcmyk(33%, 77.7%, 0%, 63.1%)
CIE-LABlab(17.47, 34.43, -34.94)
CIE-LCHlch(17.47, 49.06, 314.58°)
OKLaboklab(30.39% 0.0737 -0.0993)
OKLCHoklch(30.39% 0.124 306.6)
XYZxyz(4.3380, 2.4013, 10.8225)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F155E #345E15
analogous
#1B155E #3F155E #5E1558
triadic
#3F155E #5E3F15 #155E3F
tetradic
#3F155E #5E1B15 #345E15 #15585E
square
#3F155E #5E1B15 #345E15 #15585E
split-complementary
#3F155E #585E15 #155E1B
monochromatic
#110619 #1D0A2C #3F155E #612090 #822BC2

Accessibility & contrast

On white

14.19
#3F155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3F155E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F155E
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F155E#FFFFFF#000000##FFFFFF
##3F155E1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#002B5C
Tritanopia (blue-blind)
#3A2638
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f155e;
/* rgb */ color: rgb(63, 21, 94);
/* oklch */ color: oklch(30.4% 0.124 306.6);
Tailwind
colors: {
  custom: {
    50: '#78578c',
    500: '#3f155e',
    950: '#000000',
  },
}
SCSS
$custom: #3f155e;
$custom-light: #78578c;
$custom-dark: #000000;
JSON
{
  "hex": "#3f155e",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 274.521,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30386,
    "c": 0.12364,
    "h": 306.6
  },
  "luminance": 0.02401
}

Semantic roles & 50–950 ramp

primary
#3F155E
secondary
#609539
accent
#E74187
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F155E

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

Preview Lab → · Contrast checker → · Palette generator →

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