#3E126F#3E126F

#3E126F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.146 H 298.9°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#3E126F
RGBrgb(62, 18, 111)
HSLhsl(268, 72%, 25%)
HSVhsv(268, 84%, 44%)
CMYKcmyk(44.1%, 83.8%, 0%, 56.5%)
CIE-LABlab(18.38, 40.03, -44.63)
CIE-LCHlch(18.38, 59.95, 311.89°)
OKLaboklab(31.48% 0.0704 -0.1277)
OKLCHoklch(31.48% 0.146 298.9)
XYZxyz(5.0714, 2.6044, 15.2713)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E126F #436F12
analogous
#12156F #3E126F #6C126F
triadic
#3E126F #6F3E12 #126F3E
tetradic
#3E126F #6F1215 #436F12 #126F6C
square
#3E126F #6F1215 #436F12 #126F6C
split-complementary
#3E126F #6F6C12 #156F12
monochromatic
#0F041A #21093A #3E126F #5B1BA4 #7923D8

Accessibility & contrast

On white

13.81
#3E126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3E126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E126F
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E126F#FFFFFF#000000##FFFFFF
##3E126F1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D72
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#322C41
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3e126f;
/* rgb */ color: rgb(62, 18, 111);
/* oklch */ color: oklch(31.5% 0.146 298.9);
Tailwind
colors: {
  custom: {
    50: '#795699',
    500: '#3e126f',
    950: '#000000',
  },
}
SCSS
$custom: #3e126f;
$custom-light: #795699;
$custom-dark: #000000;
JSON
{
  "hex": "#3e126f",
  "rgb": {
    "r": 62,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 268.387,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31475,
    "c": 0.14584,
    "h": 298.9
  },
  "luminance": 0.02604
}

Semantic roles & 50–950 ramp

primary
#3E126F
secondary
#71A637
accent
#EF3999
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3E126F

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

Preview Lab → · Contrast checker → · Palette generator →

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