#3E255B#3E255B

#3E255B is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.4% C 0.095 H 302.9°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#3E255B
RGBrgb(62, 37, 91)
HSLhsl(268, 42%, 25%)
HSVhsv(268, 59%, 36%)
CMYKcmyk(31.9%, 59.3%, 0%, 64.3%)
CIE-LABlab(20.45, 24.25, -28.15)
CIE-LCHlch(20.45, 37.16, 310.74°)
OKLaboklab(32.44% 0.0513 -0.0794)
OKLCHoklch(32.44% 0.095 302.9)
XYZxyz(4.5361, 3.1026, 10.2554)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E255B #425B25
analogous
#25275B #3E255B #59255B
triadic
#3E255B #5B3E25 #255B3E
tetradic
#3E255B #5B2527 #425B25 #255B59
square
#3E255B #5B2527 #425B25 #255B59
split-complementary
#3E255B #5B5925 #275B25
monochromatic
#0F0916 #20132F #3E255B #5C3787 #7948B2

Accessibility & contrast

On white

12.96
#3E255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3E255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E255B
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E255B#FFFFFF#000000##FFFFFF
##3E255B1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10315D
Deuteranopia (green-blind)
#19315A
Tritanopia (blue-blind)
#392F3C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e255b;
/* rgb */ color: rgb(62, 37, 91);
/* oklch */ color: oklch(32.4% 0.095 302.9);
Tailwind
colors: {
  custom: {
    50: '#75608a',
    500: '#3e255b',
    950: '#000000',
  },
}
SCSS
$custom: #3e255b;
$custom-light: #75608a;
$custom-dark: #000000;
JSON
{
  "hex": "#3e255b",
  "rgb": {
    "r": 62,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 267.778,
    "s": 42.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.32442,
    "c": 0.09456,
    "h": 302.9
  },
  "luminance": 0.03103
}

Semantic roles & 50–950 ramp

primary
#3E255B
secondary
#708E4D
accent
#D25698
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08050B
muted
#7B797C

Preview Lab

Preview with #3E255B

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

Preview Lab → · Contrast checker → · Palette generator →

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