#3E2277#3E2277

#3E2277 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.137 H 292.9°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#3E2277
RGBrgb(62, 34, 119)
HSLhsl(260, 56%, 30%)
HSVhsv(260, 71%, 47%)
CMYKcmyk(47.9%, 71.4%, 0%, 53.3%)
CIE-LABlab(21.94, 34.28, -43.97)
CIE-LCHlch(21.94, 55.75, 307.94°)
OKLaboklab(34.21% 0.0531 -0.1259)
OKLCHoklch(34.21% 0.137 292.9)
XYZxyz(5.8875, 3.4999, 17.8145)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2277 #5B7722
analogous
#223077 #3E2277 #692277
triadic
#3E2277 #773E22 #22773E
tetradic
#3E2277 #772230 #5B7722 #227769
square
#3E2277 #772230 #5B7722 #227769
split-complementary
#3E2277 #776922 #307722
monochromatic
#0C0718 #251447 #3E2277 #5730A7 #7349CB

Accessibility & contrast

On white

12.35
#3E2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E2277
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2277#FFFFFF#000000##FFFFFF
##3E22771.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#003375
Tritanopia (blue-blind)
#2D3749
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e2277;
/* rgb */ color: rgb(62, 34, 119);
/* oklch */ color: oklch(34.2% 0.137 292.9);
Tailwind
colors: {
  custom: {
    50: '#795f9f',
    500: '#3e2277',
    950: '#000000',
  },
}
SCSS
$custom: #3e2277;
$custom-light: #795f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2277",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 259.765,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.34213,
    "c": 0.13661,
    "h": 292.9
  },
  "luminance": 0.035
}

Semantic roles & 50–950 ramp

primary
#3E2277
secondary
#8BAA4B
accent
#DF49AD
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #3E2277

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

Preview Lab → · Contrast checker → · Palette generator →

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