#3F125B#3F125B

#3F125B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.124 H 308.7°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#3F125B
RGBrgb(63, 18, 91)
HSLhsl(277, 67%, 21%)
HSVhsv(277, 80%, 36%)
CMYKcmyk(30.8%, 80.2%, 0%, 64.3%)
CIE-LABlab(16.72, 35.08, -34.15)
CIE-LCHlch(16.72, 48.95, 315.77°)
OKLaboklab(29.78% 0.0775 -0.0969)
OKLCHoklch(29.78% 0.124 308.7)
XYZxyz(4.1541, 2.2448, 10.1099)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F125B #2E5B12
analogous
#1B125B #3F125B #5B1253
triadic
#3F125B #5B3F12 #125B3F
tetradic
#3F125B #5B1B12 #2E5B12 #12535B
square
#3F125B #5B1B12 #2E5B12 #12535B
split-complementary
#3F125B #535B12 #125B1B
monochromatic
#12051A #1C0828 #3F125B #621C8E #8626C1

Accessibility & contrast

On white

14.49
#3F125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3F125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F125B
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F125B#FFFFFF#000000##FFFFFF
##3F125B1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#002A59
Tritanopia (blue-blind)
#3B2335
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3f125b;
/* rgb */ color: rgb(63, 18, 91);
/* oklch */ color: oklch(29.8% 0.124 308.7);
Tailwind
colors: {
  custom: {
    50: '#78558a',
    500: '#3f125b',
    950: '#000000',
  },
}
SCSS
$custom: #3f125b;
$custom-light: #78558a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f125b",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 276.986,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29782,
    "c": 0.12411,
    "h": 308.7
  },
  "luminance": 0.02245
}

Semantic roles & 50–950 ramp

primary
#3F125B
secondary
#599335
accent
#EA3E80
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F125B

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

Preview Lab → · Contrast checker → · Palette generator →

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