#3E127E#3E127E

#3E127E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.162 H 293.6°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#3E127E
RGBrgb(62, 18, 126)
HSLhsl(264, 75%, 28%)
HSVhsv(264, 86%, 49%)
CMYKcmyk(50.8%, 85.7%, 0%, 50.6%)
CIE-LABlab(19.89, 44.01, -51.79)
CIE-LCHlch(19.89, 67.96, 310.36°)
OKLaboklab(32.98% 0.065 -0.1487)
OKLCHoklch(32.98% 0.162 293.6)
XYZxyz(5.9678, 2.9629, 19.9921)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E127E #527E12
analogous
#121C7E #3E127E #74127E
triadic
#3E127E #7E3E12 #127E3E
tetradic
#3E127E #7E121C #527E12 #127E74
square
#3E127E #7E121C #527E12 #127E74
split-complementary
#3E127E #7E7412 #1C7E12
monochromatic
#0D041B #240A48 #3E127E #581AB4 #742AE1

Accessibility & contrast

On white

13.19
#3E127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E127E
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E127E#FFFFFF#000000##FFFFFF
##3E127E1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#2A334A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e127e;
/* rgb */ color: rgb(62, 18, 126);
/* oklch */ color: oklch(33.0% 0.162 293.6);
Tailwind
colors: {
  custom: {
    50: '#7b57a4',
    500: '#3e127e',
    950: '#000000',
  },
}
SCSS
$custom: #3e127e;
$custom-light: #7b57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e127e",
  "rgb": {
    "r": 62,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 264.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32978,
    "c": 0.16227,
    "h": 293.6
  },
  "luminance": 0.02963
}

Semantic roles & 50–950 ramp

primary
#3E127E
secondary
#81B438
accent
#F236A5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3E127E

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

Preview Lab → · Contrast checker → · Palette generator →

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