#3E268F#3E268F

#3E268F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.162 H 285.9°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#3E268F
RGBrgb(62, 38, 143)
HSLhsl(254, 58%, 35%)
HSVhsv(254, 73%, 56%)
CMYKcmyk(56.6%, 73.4%, 0%, 43.9%)
CIE-LABlab(24.93, 39.32, -54.19)
CIE-LCHlch(24.93, 66.95, 305.97°)
OKLaboklab(37.01% 0.0444 -0.1559)
OKLCHoklch(37.01% 0.162 285.9)
XYZxyz(7.6362, 4.3931, 26.4269)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E268F #778F26
analogous
#26438F #3E268F #72268F
triadic
#3E268F #8F3E26 #268F3E
tetradic
#3E268F #8F2643 #778F26 #268F72
square
#3E268F #8F2643 #778F26 #268F72
split-complementary
#3E268F #8F7226 #438F26
monochromatic
#140C2E #29195F #3E268F #5333BF #775CD4

Accessibility & contrast

On white

11.18
#3E268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3E268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E268F
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E268F#FFFFFF#000000##FFFFFF
##3E268F1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e268f;
/* rgb */ color: rgb(62, 38, 143);
/* oklch */ color: oklch(37.0% 0.162 285.9);
Tailwind
colors: {
  custom: {
    50: '#7d63b1',
    500: '#3e268f',
    950: '#000000',
  },
}
SCSS
$custom: #3e268f;
$custom-light: #7d63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e268f",
  "rgb": {
    "r": 62,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 253.714,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37012,
    "c": 0.16208,
    "h": 285.9
  },
  "luminance": 0.04394
}

Semantic roles & 50–950 ramp

primary
#3E268F
secondary
#A3B958
accent
#E147BE
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #3E268F

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

Preview Lab → · Contrast checker → · Palette generator →

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