#3E288C#3E288C

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

Color values

HEX#3E288C
RGBrgb(62, 40, 140)
HSLhsl(253, 56%, 35%)
HSVhsv(253, 71%, 55%)
CMYKcmyk(55.7%, 71.4%, 0%, 45.1%)
CIE-LABlab(25.06, 37.26, -52.11)
CIE-LCHlch(25.06, 64.06, 305.57°)
OKLaboklab(37.02% 0.0432 -0.1498)
OKLCHoklch(37.02% 0.156 286.1)
XYZxyz(7.4776, 4.4348, 25.2678)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E288C #768C28
analogous
#28448C #3E288C #70288C
triadic
#3E288C #8C3E28 #288C3E
tetradic
#3E288C #8C2844 #768C28 #288C70
square
#3E288C #8C2844 #768C28 #288C70
split-complementary
#3E288C #8C7028 #448C28
monochromatic
#140D2D #291A5C #3E288C #5336BC #775ED1

Accessibility & contrast

On white

11.13
#3E288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3E288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E288C
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E288C#FFFFFF#000000##FFFFFF
##3E288C1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#1D4257
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e288c;
/* rgb */ color: rgb(62, 40, 140);
/* oklch */ color: oklch(37.0% 0.156 286.1);
Tailwind
colors: {
  custom: {
    50: '#7c64af',
    500: '#3e288c',
    950: '#000000',
  },
}
SCSS
$custom: #3e288c;
$custom-light: #7c64af;
$custom-dark: #000000;
JSON
{
  "hex": "#3e288c",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 253.2,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37019,
    "c": 0.15592,
    "h": 286.1
  },
  "luminance": 0.04435
}

Semantic roles & 50–950 ramp

primary
#3E288C
secondary
#A2B65A
accent
#DF49BE
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3E288C

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

Preview Lab → · Contrast checker → · Palette generator →

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