#3E127F#3E127F

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

Color values

HEX#3E127F
RGBrgb(62, 18, 127)
HSLhsl(264, 75%, 28%)
HSVhsv(264, 86%, 50%)
CMYKcmyk(51.2%, 85.8%, 0%, 50.2%)
CIE-LABlab(20.00, 44.28, -52.25)
CIE-LCHlch(20.00, 68.49, 310.28°)
OKLaboklab(33.08% 0.0646 -0.1501)
OKLCHoklch(33.08% 0.163 293.3)
XYZxyz(6.0326, 2.9888, 20.3336)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E127F #537F12
analogous
#121D7F #3E127F #74127F
triadic
#3E127F #7F3E12 #127F3E
tetradic
#3E127F #7F121D #537F12 #127F74
square
#3E127F #7F121D #537F12 #127F74
split-complementary
#3E127F #7F7412 #1D7F12
monochromatic
#0D041B #240A49 #3E127F #581AB5 #742BE1

Accessibility & contrast

On white

13.14
#3E127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E127F
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E127F#FFFFFF#000000##FFFFFF
##3E127F1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#29334A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e127f;
/* rgb */ color: rgb(62, 18, 127);
/* oklch */ color: oklch(33.1% 0.163 293.3);
Tailwind
colors: {
  custom: {
    50: '#7b57a5',
    500: '#3e127f',
    950: '#000000',
  },
}
SCSS
$custom: #3e127f;
$custom-light: #7b57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e127f",
  "rgb": {
    "r": 62,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 264.22,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33081,
    "c": 0.16337,
    "h": 293.3
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#3E127F
secondary
#82B538
accent
#F236A6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3E127F

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

Preview Lab → · Contrast checker → · Palette generator →

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