#3E258A#3E258A

#3E258A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.157 H 287.2°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#3E258A
RGBrgb(62, 37, 138)
HSLhsl(255, 58%, 34%)
HSVhsv(255, 73%, 54%)
CMYKcmyk(55.1%, 73.2%, 0%, 45.9%)
CIE-LABlab(24.26, 38.34, -52.17)
CIE-LCHlch(24.26, 64.75, 306.32°)
OKLaboklab(36.39% 0.0463 -0.15)
OKLCHoklch(36.39% 0.157 287.2)
XYZxyz(7.2343, 4.1819, 24.4658)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E258A #718A25
analogous
#253F8A #3E258A #70258A
triadic
#3E258A #8A3E25 #258A3E
tetradic
#3E258A #8A253F #718A25 #258A70
square
#3E258A #8A253F #718A25 #258A70
split-complementary
#3E258A #8A7025 #3F8A25
monochromatic
#130B29 #28185A #3E258A #5432BA #7657D2

Accessibility & contrast

On white

11.44
#3E258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3E258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E258A
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E258A#FFFFFF#000000##FFFFFF
##3E258A1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#1F4055
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e258a;
/* rgb */ color: rgb(62, 37, 138);
/* oklch */ color: oklch(36.4% 0.157 287.2);
Tailwind
colors: {
  custom: {
    50: '#7c62ad',
    500: '#3e258a',
    950: '#000000',
  },
}
SCSS
$custom: #3e258a;
$custom-light: #7c62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3e258a",
  "rgb": {
    "r": 62,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 254.851,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36395,
    "c": 0.15697,
    "h": 287.2
  },
  "luminance": 0.04182
}

Semantic roles & 50–950 ramp

primary
#3E258A
secondary
#9EB754
accent
#E147BB
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E258A

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

Preview Lab → · Contrast checker → · Palette generator →

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