#3F145D#3F145D

#3F145D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.124 H 307.3°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#3F145D
RGBrgb(63, 20, 93)
HSLhsl(275, 65%, 22%)
HSVhsv(275, 78%, 36%)
CMYKcmyk(32.3%, 78.5%, 0%, 63.5%)
CIE-LABlab(17.21, 34.66, -34.69)
CIE-LCHlch(17.21, 49.03, 314.98°)
OKLaboklab(30.18% 0.075 -0.0985)
OKLCHoklch(30.18% 0.124 307.3)
XYZxyz(4.2754, 2.3474, 10.5817)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F145D #325D14
analogous
#1A145D #3F145D #5D1457
triadic
#3F145D #5D3F14 #145D3F
tetradic
#3F145D #5D1A14 #325D14 #14575D
square
#3F145D #5D1A14 #325D14 #14575D
split-complementary
#3F145D #575D14 #145D1A
monochromatic
#110519 #1D092B #3F145D #611F8F #832AC2

Accessibility & contrast

On white

14.29
#3F145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F145D
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F145D#FFFFFF#000000##FFFFFF
##3F145D1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#002B5B
Tritanopia (blue-blind)
#3A2537
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3f145d;
/* rgb */ color: rgb(63, 20, 93);
/* oklch */ color: oklch(30.2% 0.124 307.3);
Tailwind
colors: {
  custom: {
    50: '#78568b',
    500: '#3f145d',
    950: '#000000',
  },
}
SCSS
$custom: #3f145d;
$custom-light: #78568b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f145d",
  "rgb": {
    "r": 63,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 275.342,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30182,
    "c": 0.1238,
    "h": 307.3
  },
  "luminance": 0.02347
}

Semantic roles & 50–950 ramp

primary
#3F145D
secondary
#5E9538
accent
#E84085
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F145D

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

Preview Lab → · Contrast checker → · Palette generator →

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