#3F145F#3F145F

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

Color values

HEX#3F145F
RGBrgb(63, 20, 95)
HSLhsl(274, 65%, 23%)
HSVhsv(274, 79%, 37%)
CMYKcmyk(33.7%, 78.9%, 0%, 62.7%)
CIE-LABlab(17.38, 35.17, -35.75)
CIE-LCHlch(17.38, 50.14, 314.53°)
OKLaboklab(30.35% 0.0746 -0.1016)
OKLCHoklch(30.35% 0.126 306.3)
XYZxyz(4.3652, 2.3833, 11.0543)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F145F #345F14
analogous
#1A145F #3F145F #5F1459
triadic
#3F145F #5F3F14 #145F3F
tetradic
#3F145F #5F1A14 #345F14 #14595F
square
#3F145F #5F1A14 #345F14 #14595F
split-complementary
#3F145F #595F14 #145F1A
monochromatic
#110519 #1D092C #3F145F #611F92 #8229C4

Accessibility & contrast

On white

14.22
#3F145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F145F
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F145F#FFFFFF#000000##FFFFFF
##3F145F1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#392638
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f145f;
/* rgb */ color: rgb(63, 20, 95);
/* oklch */ color: oklch(30.4% 0.126 306.3);
Tailwind
colors: {
  custom: {
    50: '#78568d',
    500: '#3f145f',
    950: '#000000',
  },
}
SCSS
$custom: #3f145f;
$custom-light: #78568d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f145f",
  "rgb": {
    "r": 63,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 274.4,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30354,
    "c": 0.12605,
    "h": 306.3
  },
  "luminance": 0.02383
}

Semantic roles & 50–950 ramp

primary
#3F145F
secondary
#609738
accent
#E84088
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F145F

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

Preview Lab → · Contrast checker → · Palette generator →

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