#3F145B#3F145B

#3F145B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.122 H 308.3°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#3F145B
RGBrgb(63, 20, 91)
HSLhsl(276, 64%, 22%)
HSVhsv(276, 78%, 36%)
CMYKcmyk(30.8%, 78%, 0%, 64.3%)
CIE-LABlab(17.05, 34.15, -33.62)
CIE-LCHlch(17.05, 47.92, 315.45°)
OKLaboklab(30.01% 0.0754 -0.0954)
OKLCHoklch(30.01% 0.122 308.3)
XYZxyz(4.1880, 2.3125, 10.1212)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F145B #305B14
analogous
#1C145B #3F145B #5B1454
triadic
#3F145B #5B3F14 #145B3F
tetradic
#3F145B #5B1C14 #305B14 #14545B
square
#3F145B #5B1C14 #305B14 #14545B
split-complementary
#3F145B #545B14 #145B1C
monochromatic
#110619 #1C0929 #3F145B #621F8D #842ABF

Accessibility & contrast

On white

14.36
#3F145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3F145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F145B
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F145B#FFFFFF#000000##FFFFFF
##3F145B1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#012A5A
Tritanopia (blue-blind)
#3B2436
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3f145b;
/* rgb */ color: rgb(63, 20, 91);
/* oklch */ color: oklch(30.0% 0.122 308.3);
Tailwind
colors: {
  custom: {
    50: '#77568a',
    500: '#3f145b',
    950: '#000000',
  },
}
SCSS
$custom: #3f145b;
$custom-light: #77568a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f145b",
  "rgb": {
    "r": 63,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 276.338,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30012,
    "c": 0.12156,
    "h": 308.3
  },
  "luminance": 0.02312
}

Semantic roles & 50–950 ramp

primary
#3F145B
secondary
#5C9338
accent
#E74182
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F145B

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

Preview Lab → · Contrast checker → · Palette generator →

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