#3F1874#3F1874

#3F1874 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.145 H 296.7°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#3F1874
RGBrgb(63, 24, 116)
HSLhsl(265, 66%, 27%)
HSVhsv(265, 79%, 45%)
CMYKcmyk(45.7%, 79.3%, 0%, 54.5%)
CIE-LABlab(19.93, 38.87, -45.33)
CIE-LCHlch(19.93, 59.71, 310.61°)
OKLaboklab(32.73% 0.0653 -0.1298)
OKLCHoklch(32.73% 0.145 296.7)
XYZxyz(5.5281, 2.9709, 16.8018)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1874 #4D7418
analogous
#181F74 #3F1874 #6D1874
triadic
#3F1874 #743F18 #18743F
tetradic
#3F1874 #74181F #4D7418 #18746D
square
#3F1874 #74181F #4D7418 #18746D
split-complementary
#3F1874 #746D18 #1F7418
monochromatic
#0E0519 #230E41 #3F1874 #5B22A7 #7732D5

Accessibility & contrast

On white

13.17
#3F1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3F1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1874
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1874#FFFFFF#000000##FFFFFF
##3F18741.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#313145
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3f1874;
/* rgb */ color: rgb(63, 24, 116);
/* oklch */ color: oklch(32.7% 0.145 296.7);
Tailwind
colors: {
  custom: {
    50: '#7a5a9d',
    500: '#3f1874',
    950: '#000000',
  },
}
SCSS
$custom: #3f1874;
$custom-light: #7a5a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1874",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 265.435,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32728,
    "c": 0.14529,
    "h": 296.7
  },
  "luminance": 0.02971
}

Semantic roles & 50–950 ramp

primary
#3F1874
secondary
#7CA93F
accent
#E93FA1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1874

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

Preview Lab → · Contrast checker → · Palette generator →

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