#3E258F#3E258F

#3E258F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.163 H 286.1°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#3E258F
RGBrgb(62, 37, 143)
HSLhsl(254, 59%, 35%)
HSVhsv(254, 74%, 56%)
CMYKcmyk(56.6%, 74.1%, 0%, 43.9%)
CIE-LABlab(24.73, 39.88, -54.51)
CIE-LCHlch(24.73, 67.54, 306.19°)
OKLaboklab(36.87% 0.0452 -0.1568)
OKLCHoklch(36.87% 0.163 286.1)
XYZxyz(7.6046, 4.3300, 26.4163)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E258F #768F25
analogous
#25418F #3E258F #73258F
triadic
#3E258F #8F3E25 #258F3E
tetradic
#3E258F #8F2541 #768F25 #258F73
square
#3E258F #8F2541 #768F25 #258F73
split-complementary
#3E258F #8F7325 #418F25
monochromatic
#140C2E #29185E #3E258F #5332C0 #775AD4

Accessibility & contrast

On white

11.25
#3E258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3E258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E258F
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E258F#FFFFFF#000000##FFFFFF
##3E258F1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#194258
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e258f;
/* rgb */ color: rgb(62, 37, 143);
/* oklch */ color: oklch(36.9% 0.163 286.1);
Tailwind
colors: {
  custom: {
    50: '#7d62b1',
    500: '#3e258f',
    950: '#000000',
  },
}
SCSS
$custom: #3e258f;
$custom-light: #7d62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e258f",
  "rgb": {
    "r": 62,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 254.151,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36873,
    "c": 0.16321,
    "h": 286.1
  },
  "luminance": 0.0433
}

Semantic roles & 50–950 ramp

primary
#3E258F
secondary
#A2B957
accent
#E246BD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E258F

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

Preview Lab → · Contrast checker → · Palette generator →

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