#3E268B#3E268B

#3E268B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.157 H 286.7°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#3E268B
RGBrgb(62, 38, 139)
HSLhsl(254, 57%, 35%)
HSVhsv(254, 73%, 55%)
CMYKcmyk(55.4%, 72.7%, 0%, 45.5%)
CIE-LABlab(24.56, 38.09, -52.31)
CIE-LCHlch(24.56, 64.71, 306.06°)
OKLaboklab(36.63% 0.0452 -0.1504)
OKLCHoklch(36.63% 0.157 286.7)
XYZxyz(7.3385, 4.2741, 24.8594)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E268B #738B26
analogous
#26418B #3E268B #70268B
triadic
#3E268B #8B3E26 #268B3E
tetradic
#3E268B #8B2641 #738B26 #268B70
square
#3E268B #8B2641 #738B26 #268B70
split-complementary
#3E268B #8B7026 #418B26
monochromatic
#130C2B #29195B #3E268B #5333BB #765AD2

Accessibility & contrast

On white

11.32
#3E268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E268B
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E268B#FFFFFF#000000##FFFFFF
##3E268B1.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#1E4156
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e268b;
/* rgb */ color: rgb(62, 38, 139);
/* oklch */ color: oklch(36.6% 0.157 286.7);
Tailwind
colors: {
  custom: {
    50: '#7c63ae',
    500: '#3e268b',
    950: '#000000',
  },
}
SCSS
$custom: #3e268b;
$custom-light: #7c63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3e268b",
  "rgb": {
    "r": 62,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 254.257,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36633,
    "c": 0.15705,
    "h": 286.7
  },
  "luminance": 0.04274
}

Semantic roles & 50–950 ramp

primary
#3E268B
secondary
#A0B756
accent
#E047BC
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E268B

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

Preview Lab → · Contrast checker → · Palette generator →

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