#3F1895#3F1895

#3F1895 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.183 H 287.3°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#3F1895
RGBrgb(63, 24, 149)
HSLhsl(259, 72%, 34%)
HSVhsv(259, 84%, 58%)
CMYKcmyk(57.7%, 83.9%, 0%, 41.6%)
CIE-LABlab(23.27, 48.02, -60.63)
CIE-LCHlch(23.27, 77.34, 308.38°)
OKLaboklab(36.06% 0.0542 -0.1746)
OKLCHoklch(36.06% 0.183 287.3)
XYZxyz(7.7997, 3.8795, 28.7658)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1895 #6E9518
analogous
#183095 #3F1895 #7E1895
triadic
#3F1895 #953F18 #18953F
tetradic
#3F1895 #951830 #6E9518 #18957E
square
#3F1895 #951830 #6E9518 #18957E
split-complementary
#3F1895 #957E18 #309518
monochromatic
#12072C #291060 #3F1895 #5520CA #7746E1

Accessibility & contrast

On white

11.82
#3F1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3F1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1895
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1895#FFFFFF#000000##FFFFFF
##3F18951.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#163F58
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3f1895;
/* rgb */ color: rgb(63, 24, 149);
/* oklch */ color: oklch(36.1% 0.183 287.3);
Tailwind
colors: {
  custom: {
    50: '#7f5cb5',
    500: '#3f1895',
    950: '#000000',
  },
}
SCSS
$custom: #3f1895;
$custom-light: #7f5cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1895",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 258.72,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36058,
    "c": 0.18279,
    "h": 287.3
  },
  "luminance": 0.0388
}

Semantic roles & 50–950 ramp

primary
#3F1895
secondary
#9CC246
accent
#EF39B6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F1895

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

Preview Lab → · Contrast checker → · Palette generator →

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