#3F155A#3F155A

#3F155A is a dark, moderate violet. Relative luminance 0.023; OKLCH L 30.0% C 0.119 H 308.7°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#3F155A
RGBrgb(63, 21, 90)
HSLhsl(277, 62%, 22%)
HSVhsv(277, 77%, 35%)
CMYKcmyk(30%, 76.7%, 0%, 64.7%)
CIE-LABlab(17.14, 33.42, -32.80)
CIE-LCHlch(17.14, 46.83, 315.53°)
OKLaboklab(30.05% 0.0744 -0.093)
OKLCHoklch(30.05% 0.119 308.7)
XYZxyz(4.1632, 2.3313, 9.9016)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F155A #305A15
analogous
#1D155A #3F155A #5A1553
triadic
#3F155A #5A3F15 #155A3F
tetradic
#3F155A #5A1D15 #305A15 #15535A
square
#3F155A #5A1D15 #305A15 #15535A
split-complementary
#3F155A #535A15 #155A1D
monochromatic
#110619 #1C0928 #3F155A #62218C #842CBD

Accessibility & contrast

On white

14.32
#3F155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3F155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F155A
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F155A#FFFFFF#000000##FFFFFF
##3F155A1.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295C
Deuteranopia (green-blind)
#052B59
Tritanopia (blue-blind)
#3B2536
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3f155a;
/* rgb */ color: rgb(63, 21, 90);
/* oklch */ color: oklch(30.0% 0.119 308.7);
Tailwind
colors: {
  custom: {
    50: '#775789',
    500: '#3f155a',
    950: '#000000',
  },
}
SCSS
$custom: #3f155a;
$custom-light: #775789;
$custom-dark: #000000;
JSON
{
  "hex": "#3f155a",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 276.522,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.3005,
    "c": 0.11909,
    "h": 308.7
  },
  "luminance": 0.02331
}

Semantic roles & 50–950 ramp

primary
#3F155A
secondary
#5C9239
accent
#E54382
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F155A

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

Preview Lab → · Contrast checker → · Palette generator →

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