#3F1875#3F1875

#3F1875 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.146 H 296.3°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#3F1875
RGBrgb(63, 24, 117)
HSLhsl(265, 66%, 28%)
HSVhsv(265, 79%, 46%)
CMYKcmyk(46.2%, 79.5%, 0%, 54.1%)
CIE-LABlab(20.02, 39.14, -45.82)
CIE-LCHlch(20.02, 60.26, 310.51°)
OKLaboklab(32.82% 0.065 -0.1312)
OKLCHoklch(32.82% 0.146 296.3)
XYZxyz(5.5866, 2.9943, 17.1098)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1875 #4E7518
analogous
#182075 #3F1875 #6D1875
triadic
#3F1875 #753F18 #18753F
tetradic
#3F1875 #751820 #4E7518 #18756D
square
#3F1875 #751820 #4E7518 #18756D
split-complementary
#3F1875 #756D18 #207518
monochromatic
#0E0519 #240E42 #3F1875 #5A22A8 #7732D5

Accessibility & contrast

On white

13.13
#3F1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3F1875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1875
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1875#FFFFFF#000000##FFFFFF
##3F18751.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#303146
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3f1875;
/* rgb */ color: rgb(63, 24, 117);
/* oklch */ color: oklch(32.8% 0.146 296.3);
Tailwind
colors: {
  custom: {
    50: '#7a5a9e',
    500: '#3f1875',
    950: '#000000',
  },
}
SCSS
$custom: #3f1875;
$custom-light: #7a5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1875",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 265.161,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32823,
    "c": 0.14645,
    "h": 296.3
  },
  "luminance": 0.02994
}

Semantic roles & 50–950 ramp

primary
#3F1875
secondary
#7DAA3F
accent
#E93FA2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1875

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

Preview Lab → · Contrast checker → · Palette generator →

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