#3E1458#3E1458

#3E1458 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.6% C 0.118 H 309.1°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#3E1458
RGBrgb(62, 20, 88)
HSLhsl(277, 63%, 21%)
HSVhsv(277, 77%, 35%)
CMYKcmyk(29.5%, 77.3%, 0%, 65.5%)
CIE-LABlab(16.65, 33.17, -32.26)
CIE-LCHlch(16.65, 46.27, 315.79°)
OKLaboklab(29.62% 0.0744 -0.0914)
OKLCHoklch(29.62% 0.118 309.1)
XYZxyz(3.9979, 2.2291, 9.4503)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1458 #2E5814
analogous
#1C1458 #3E1458 #581450
triadic
#3E1458 #583E14 #14583E
tetradic
#3E1458 #581C14 #2E5814 #145058
square
#3E1458 #581C14 #2E5814 #145058
split-complementary
#3E1458 #505814 #14581C
monochromatic
#120619 #1B0926 #3E1458 #611F8A #842BBC

Accessibility & contrast

On white

14.52
#3E1458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3E1458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1458
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1458#FFFFFF#000000##FFFFFF
##3E14581.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#052A57
Tritanopia (blue-blind)
#3A2334
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3e1458;
/* rgb */ color: rgb(62, 20, 88);
/* oklch */ color: oklch(29.6% 0.118 309.1);
Tailwind
colors: {
  custom: {
    50: '#765688',
    500: '#3e1458',
    950: '#000000',
  },
}
SCSS
$custom: #3e1458;
$custom-light: #765688;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1458",
  "rgb": {
    "r": 62,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 277.059,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29616,
    "c": 0.11786,
    "h": 309.1
  },
  "luminance": 0.02229
}

Semantic roles & 50–950 ramp

primary
#3E1458
secondary
#5A9038
accent
#E64281
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3E1458

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

Preview Lab → · Contrast checker → · Palette generator →

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