#3E288A#3E288A

#3E288A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.153 H 286.5°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#3E288A
RGBrgb(62, 40, 138)
HSLhsl(253, 55%, 35%)
HSVhsv(253, 71%, 54%)
CMYKcmyk(55.1%, 71%, 0%, 45.9%)
CIE-LABlab(24.88, 36.64, -51.16)
CIE-LCHlch(24.88, 62.93, 305.61°)
OKLaboklab(36.83% 0.0436 -0.147)
OKLCHoklch(36.83% 0.153 286.5)
XYZxyz(7.3315, 4.3763, 24.4982)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E288A #748A28
analogous
#28438A #3E288A #6F288A
triadic
#3E288A #8A3E28 #288A3E
tetradic
#3E288A #8A2843 #748A28 #288A6F
square
#3E288A #8A2843 #748A28 #288A6F
split-complementary
#3E288A #8A6F28 #438A28
monochromatic
#130C2B #291A5B #3E288A #5336B9 #765DD0

Accessibility & contrast

On white

11.20
#3E288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E288A
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E288A#FFFFFF#000000##FFFFFF
##3E288A1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#1F4156
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e288a;
/* rgb */ color: rgb(62, 40, 138);
/* oklch */ color: oklch(36.8% 0.153 286.5);
Tailwind
colors: {
  custom: {
    50: '#7c64ad',
    500: '#3e288a',
    950: '#000000',
  },
}
SCSS
$custom: #3e288a;
$custom-light: #7c64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3e288a",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 253.469,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36833,
    "c": 0.15336,
    "h": 286.5
  },
  "luminance": 0.04377
}

Semantic roles & 50–950 ramp

primary
#3E288A
secondary
#A0B559
accent
#DE49BD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3E288A

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

Preview Lab → · Contrast checker → · Palette generator →

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