#3E2F71#3E2F71

#3E2F71 is a dark, moderate violet. Relative luminance 0.042; OKLCH L 35.9% C 0.109 H 290.3°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#3E2F71
RGBrgb(62, 47, 113)
HSLhsl(254, 41%, 31%)
HSVhsv(254, 58%, 44%)
CMYKcmyk(45.1%, 58.4%, 0%, 55.7%)
CIE-LABlab(24.48, 24.42, -36.02)
CIE-LCHlch(24.48, 43.52, 304.13°)
OKLaboklab(35.91% 0.0379 -0.1025)
OKLCHoklch(35.91% 0.109 290.3)
XYZxyz(5.9829, 4.2492, 16.1245)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2F71 #62712F
analogous
#2F4171 #3E2F71 #5F2F71
triadic
#3E2F71 #713E2F #2F713E
tetradic
#3E2F71 #712F41 #62712F #2F715F
square
#3E2F71 #712F41 #62712F #2F715F
split-complementary
#3E2F71 #715F2F #41712F
monochromatic
#0F0B1B #261D46 #3E2F71 #56419C #745EBC

Accessibility & contrast

On white

11.35
#3E2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3E2F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2F71
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2F71#FFFFFF#000000##FFFFFF
##3E2F711.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3B73
Deuteranopia (green-blind)
#0E3970
Tritanopia (blue-blind)
#2F3D4B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e2f71;
/* rgb */ color: rgb(62, 47, 113);
/* oklch */ color: oklch(35.9% 0.109 290.3);
Tailwind
colors: {
  custom: {
    50: '#77689a',
    500: '#3e2f71',
    950: '#000000',
  },
}
SCSS
$custom: #3e2f71;
$custom-light: #77689a;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2f71",
  "rgb": {
    "r": 62,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 253.636,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35908,
    "c": 0.1093,
    "h": 290.3
  },
  "luminance": 0.04249
}

Semantic roles & 50–950 ramp

primary
#3E2F71
secondary
#92A25A
accent
#D157B5
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #3E2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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