#3E3852#3E3852

#3E3852 is a dark, muted violet. Relative luminance 0.045; OKLCH L 35.8% C 0.045 H 294.6°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#3E3852
RGBrgb(62, 56, 82)
HSLhsl(254, 19%, 27%)
HSVhsv(254, 32%, 32%)
CMYKcmyk(24.4%, 31.7%, 0%, 67.8%)
CIE-LABlab(25.14, 9.05, -14.82)
CIE-LCHlch(25.14, 17.36, 301.41°)
OKLaboklab(35.82% 0.0187 -0.0409)
OKLCHoklch(35.82% 0.045 294.6)
XYZxyz(4.9234, 4.4616, 8.5828)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E3852 #4C5238
analogous
#383F52 #3E3852 #4B3852
triadic
#3E3852 #523E38 #38523E
tetradic
#3E3852 #52383F #4C5238 #38524B
square
#3E3852 #52383F #4C5238 #38524B
split-complementary
#3E3852 #524B38 #3F5238
monochromatic
#0E0C12 #231F2E #3E3852 #595176 #766B9A

Accessibility & contrast

On white

11.10
#3E3852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E3852
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E3852#FFFFFF#000000##FFFFFF
##3E38521.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323C53
Deuteranopia (green-blind)
#323B51
Tritanopia (blue-blind)
#3A3C41
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e3852;
/* rgb */ color: rgb(62, 56, 82);
/* oklch */ color: oklch(35.8% 0.045 294.6);
Tailwind
colors: {
  custom: {
    50: '#736e82',
    500: '#3e3852',
    950: '#000000',
  },
}
SCSS
$custom: #3e3852;
$custom-light: #736e82;
$custom-dark: #000000;
JSON
{
  "hex": "#3e3852",
  "rgb": {
    "r": 62,
    "g": 56,
    "b": 82
  },
  "hsl": {
    "h": 253.846,
    "s": 18.841,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35816,
    "c": 0.04495,
    "h": 294.6
  },
  "luminance": 0.04462
}

Semantic roles & 50–950 ramp

primary
#3E3852
secondary
#7B8264
accent
#BB6CA9
background
#F7F6F8
surface
#EDEBEF
border
#C8C6CA
text
#08070A
muted
#7B7A7C

Preview Lab

Preview with #3E3852

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

Preview Lab → · Contrast checker → · Palette generator →

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