#3E277A#3E277A

#3E277A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.2% C 0.134 H 290.6°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#3E277A
RGBrgb(62, 39, 122)
HSLhsl(257, 52%, 32%)
HSVhsv(257, 68%, 48%)
CMYKcmyk(49.2%, 68%, 0%, 52.2%)
CIE-LABlab(23.27, 32.26, -43.72)
CIE-LCHlch(23.27, 54.33, 306.43°)
OKLaboklab(35.25% 0.0471 -0.1252)
OKLCHoklch(35.25% 0.134 290.6)
XYZxyz(6.2240, 3.8801, 18.8296)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E277A #637A27
analogous
#27397A #3E277A #68277A
triadic
#3E277A #7A3E27 #277A3E
tetradic
#3E277A #7A2739 #637A27 #277A68
square
#3E277A #7A2739 #637A27 #277A68
split-complementary
#3E277A #7A6827 #397A27
monochromatic
#0F091D #26184C #3E277A #5636A8 #7453C8

Accessibility & contrast

On white

11.82
#3E277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3E277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E277A
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E277A#FFFFFF#000000##FFFFFF
##3E277A1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#2B3B4D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e277a;
/* rgb */ color: rgb(62, 39, 122);
/* oklch */ color: oklch(35.2% 0.134 290.6);
Tailwind
colors: {
  custom: {
    50: '#7963a1',
    500: '#3e277a',
    950: '#000000',
  },
}
SCSS
$custom: #3e277a;
$custom-light: #7963a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e277a",
  "rgb": {
    "r": 62,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 256.627,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35246,
    "c": 0.13375,
    "h": 290.6
  },
  "luminance": 0.0388
}

Semantic roles & 50–950 ramp

primary
#3E277A
secondary
#93AC51
accent
#DB4DB4
background
#F7F5FA
surface
#EEEAF3
border
#C9C6CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E277A

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

Preview Lab → · Contrast checker → · Palette generator →

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