#3F1855#3F1855

#3F1855 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.0% C 0.109 H 310.9°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#3F1855
RGBrgb(63, 24, 85)
HSLhsl(278, 56%, 21%)
HSVhsv(278, 72%, 33%)
CMYKcmyk(25.9%, 71.8%, 0%, 66.7%)
CIE-LABlab(17.30, 30.61, -29.18)
CIE-LCHlch(17.30, 42.29, 316.37°)
OKLaboklab(30.04% 0.0713 -0.0823)
OKLCHoklch(30.04% 0.109 310.9)
XYZxyz(4.0159, 2.3660, 8.8377)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1855 #2E5518
analogous
#211855 #3F1855 #55184D
triadic
#3F1855 #553F18 #18553F
tetradic
#3F1855 #552118 #2E5518 #184D55
square
#3F1855 #552118 #2E5518 #184D55
split-complementary
#3F1855 #4D5518 #185521
monochromatic
#120718 #1C0B25 #3F1855 #622585 #8633B4

Accessibility & contrast

On white

14.25
#3F1855 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1855
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1855#FFFFFF#000000##FFFFFF
##3F18551.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#112B54
Tritanopia (blue-blind)
#3C2434
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f1855;
/* rgb */ color: rgb(63, 24, 85);
/* oklch */ color: oklch(30.0% 0.109 310.9);
Tailwind
colors: {
  custom: {
    50: '#775885',
    500: '#3f1855',
    950: '#000000',
  },
}
SCSS
$custom: #3f1855;
$custom-light: #775885;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1855",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 85
  },
  "hsl": {
    "h": 278.361,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30043,
    "c": 0.10895,
    "h": 310.9
  },
  "luminance": 0.02366
}

Semantic roles & 50–950 ramp

primary
#3F1855
secondary
#598C3D
accent
#DF497F
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F1855

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

Preview Lab → · Contrast checker → · Palette generator →

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