#3E258D#3E258D

#3E258D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.161 H 286.5°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#3E258D
RGBrgb(62, 37, 141)
HSLhsl(254, 58%, 35%)
HSVhsv(254, 74%, 55%)
CMYKcmyk(56%, 73.8%, 0%, 44.7%)
CIE-LABlab(24.54, 39.26, -53.58)
CIE-LCHlch(24.54, 66.42, 306.24°)
OKLaboklab(36.68% 0.0457 -0.1541)
OKLCHoklch(36.68% 0.161 286.5)
XYZxyz(7.4545, 4.2700, 25.6255)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E258D #748D25
analogous
#25408D #3E258D #72258D
triadic
#3E258D #8D3E25 #258D3E
tetradic
#3E258D #8D2540 #748D25 #258D72
square
#3E258D #8D2540 #748D25 #258D72
split-complementary
#3E258D #8D7225 #408D25
monochromatic
#130C2C #29185D #3E258D #5332BD #7659D3

Accessibility & contrast

On white

11.33
#3E258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3E258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E258D
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E258D#FFFFFF#000000##FFFFFF
##3E258D1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#1C4156
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e258d;
/* rgb */ color: rgb(62, 37, 141);
/* oklch */ color: oklch(36.7% 0.161 286.5);
Tailwind
colors: {
  custom: {
    50: '#7c62af',
    500: '#3e258d',
    950: '#000000',
  },
}
SCSS
$custom: #3e258d;
$custom-light: #7c62af;
$custom-dark: #000000;
JSON
{
  "hex": "#3e258d",
  "rgb": {
    "r": 62,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 254.423,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36681,
    "c": 0.16073,
    "h": 286.5
  },
  "luminance": 0.0427
}

Semantic roles & 50–950 ramp

primary
#3E258D
secondary
#A0B856
accent
#E246BC
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E258D

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

Preview Lab → · Contrast checker → · Palette generator →

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