#3E268E#3E268E

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

Color values

HEX#3E268E
RGBrgb(62, 38, 142)
HSLhsl(254, 58%, 35%)
HSVhsv(254, 73%, 56%)
CMYKcmyk(56.3%, 73.2%, 0%, 44.3%)
CIE-LABlab(24.84, 39.02, -53.72)
CIE-LCHlch(24.84, 66.39, 305.99°)
OKLaboklab(36.92% 0.0446 -0.1545)
OKLCHoklch(36.92% 0.161 286.1)
XYZxyz(7.5607, 4.3629, 26.0297)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E268E #768E26
analogous
#26428E #3E268E #72268E
triadic
#3E268E #8E3E26 #268E3E
tetradic
#3E268E #8E2642 #768E26 #268E72
square
#3E268E #8E2642 #768E26 #268E72
split-complementary
#3E268E #8E7226 #428E26
monochromatic
#140C2D #29195E #3E268E #5333BE #775BD3

Accessibility & contrast

On white

11.21
#3E268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E268E
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E268E#FFFFFF#000000##FFFFFF
##3E268E1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#1A4257
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e268e;
/* rgb */ color: rgb(62, 38, 142);
/* oklch */ color: oklch(36.9% 0.161 286.1);
Tailwind
colors: {
  custom: {
    50: '#7c63b0',
    500: '#3e268e',
    950: '#000000',
  },
}
SCSS
$custom: #3e268e;
$custom-light: #7c63b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e268e",
  "rgb": {
    "r": 62,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 253.846,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36917,
    "c": 0.16083,
    "h": 286.1
  },
  "luminance": 0.04363
}

Semantic roles & 50–950 ramp

primary
#3E268E
secondary
#A2B858
accent
#E147BD
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #3E268E

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

Preview Lab → · Contrast checker → · Palette generator →

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