#3E228B#3E228B

#3E228B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.162 H 287.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#3E228B
RGBrgb(62, 34, 139)
HSLhsl(256, 61%, 34%)
HSVhsv(256, 76%, 55%)
CMYKcmyk(55.4%, 75.5%, 0%, 45.5%)
CIE-LABlab(23.78, 40.28, -53.59)
CIE-LCHlch(23.78, 67.04, 306.93°)
OKLaboklab(36.08% 0.0487 -0.1541)
OKLCHoklch(36.08% 0.162 287.5)
XYZxyz(7.2175, 4.0319, 24.8190)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E228B #6F8B22
analogous
#223B8B #3E228B #73228B
triadic
#3E228B #8B3E22 #228B3E
tetradic
#3E228B #8B223B #6F8B22 #228B73
square
#3E228B #8B223B #6F8B22 #228B73
split-complementary
#3E228B #8B7322 #3B8B22
monochromatic
#120A29 #28165A #3E228B #542EBC #7553D5

Accessibility & contrast

On white

11.63
#3E228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3E228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E228B
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E228B#FFFFFF#000000##FFFFFF
##3E228B1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#1E3F55
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e228b;
/* rgb */ color: rgb(62, 34, 139);
/* oklch */ color: oklch(36.1% 0.162 287.5);
Tailwind
colors: {
  custom: {
    50: '#7c60ae',
    500: '#3e228b',
    950: '#000000',
  },
}
SCSS
$custom: #3e228b;
$custom-light: #7c60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3e228b",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 256,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36079,
    "c": 0.16164,
    "h": 287.5
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#3E228B
secondary
#9DB850
accent
#E444B9
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E228B

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

Preview Lab → · Contrast checker → · Palette generator →

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