#3E2278#3E2278

#3E2278 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.138 H 292.5°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#3E2278
RGBrgb(62, 34, 120)
HSLhsl(260, 56%, 30%)
HSVhsv(260, 72%, 47%)
CMYKcmyk(48.3%, 71.7%, 0%, 52.9%)
CIE-LABlab(22.03, 34.58, -44.46)
CIE-LCHlch(22.03, 56.33, 307.87°)
OKLaboklab(34.3% 0.0529 -0.1273)
OKLCHoklch(34.3% 0.138 292.5)
XYZxyz(5.9479, 3.5241, 18.1325)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2278 #5C7822
analogous
#223178 #3E2278 #692278
triadic
#3E2278 #783E22 #22783E
tetradic
#3E2278 #782231 #5C7822 #227869
square
#3E2278 #782231 #5C7822 #227869
split-complementary
#3E2278 #786922 #317822
monochromatic
#0D0719 #251448 #3E2278 #5730A8 #7349CB

Accessibility & contrast

On white

12.32
#3E2278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3E2278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2278
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2278#FFFFFF#000000##FFFFFF
##3E22781.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#003376
Tritanopia (blue-blind)
#2C374A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e2278;
/* rgb */ color: rgb(62, 34, 120);
/* oklch */ color: oklch(34.3% 0.138 292.5);
Tailwind
colors: {
  custom: {
    50: '#795fa0',
    500: '#3e2278',
    950: '#000000',
  },
}
SCSS
$custom: #3e2278;
$custom-light: #795fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2278",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 259.535,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34302,
    "c": 0.13789,
    "h": 292.5
  },
  "luminance": 0.03524
}

Semantic roles & 50–950 ramp

primary
#3E2278
secondary
#8CAB4B
accent
#DF49AE
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050F
muted
#7C797E

Preview Lab

Preview with #3E2278

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

Preview Lab → · Contrast checker → · Palette generator →

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