#3F127F#3F127F

#3F127F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.163 H 293.9°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#3F127F
RGBrgb(63, 18, 127)
HSLhsl(265, 75%, 28%)
HSVhsv(265, 86%, 50%)
CMYKcmyk(50.4%, 85.8%, 0%, 50.2%)
CIE-LABlab(20.13, 44.41, -52.03)
CIE-LCHlch(20.13, 68.41, 310.48°)
OKLaboklab(33.2% 0.0662 -0.1494)
OKLCHoklch(33.2% 0.163 293.9)
XYZxyz(6.0959, 3.0215, 20.3366)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F127F #527F12
analogous
#121B7F #3F127F #75127F
triadic
#3F127F #7F3F12 #127F3F
tetradic
#3F127F #7F121B #527F12 #127F75
square
#3F127F #7F121B #527F12 #127F75
split-complementary
#3F127F #7F7512 #1B7F12
monochromatic
#0D041B #240A49 #3F127F #5A1AB5 #762BE1

Accessibility & contrast

On white

13.09
#3F127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F127F
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F127F#FFFFFF#000000##FFFFFF
##3F127F1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#2B334A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f127f;
/* rgb */ color: rgb(63, 18, 127);
/* oklch */ color: oklch(33.2% 0.163 293.9);
Tailwind
colors: {
  custom: {
    50: '#7c57a5',
    500: '#3f127f',
    950: '#000000',
  },
}
SCSS
$custom: #3f127f;
$custom-light: #7c57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f127f",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 264.771,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.332,
    "c": 0.16341,
    "h": 293.9
  },
  "luminance": 0.03022
}

Semantic roles & 50–950 ramp

primary
#3F127F
secondary
#81B538
accent
#F236A4
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F127F

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

Preview Lab → · Contrast checker → · Palette generator →

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