#3E2FA6#3E2FA6

#3E2FA6 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.181 H 280.3°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#3E2FA6
RGBrgb(62, 47, 166)
HSLhsl(248, 56%, 42%)
HSVhsv(248, 72%, 65%)
CMYKcmyk(62.7%, 71.7%, 0%, 34.9%)
CIE-LABlab(28.93, 41.48, -61.69)
CIE-LCHlch(28.93, 74.33, 303.91°)
OKLaboklab(40.52% 0.0324 -0.1779)
OKLCHoklch(40.52% 0.181 280.3)
XYZxyz(9.8839, 5.8096, 36.6695)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2FA6 #97A62F
analogous
#2F5CA6 #3E2FA6 #7A2FA6
triadic
#3E2FA6 #A63E2F #2FA63E
tetradic
#3E2FA6 #A62F5C #97A62F #2FA67A
square
#3E2FA6 #A62F5C #97A62F #2FA67A
split-complementary
#3E2FA6 #A67A2F #5CA62F
monochromatic
#1A1447 #2C2176 #3E2FA6 #5847CB #8377D8

Accessibility & contrast

On white

9.71
#3E2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#3E2FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2FA6
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2FA6#FFFFFF#000000##FFFFFF
##3E2FA61.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0040A4
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3e2fa6;
/* rgb */ color: rgb(62, 47, 166);
/* oklch */ color: oklch(40.5% 0.181 280.3);
Tailwind
colors: {
  custom: {
    50: '#8069c1',
    500: '#3e2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #3e2fa6;
$custom-light: #8069c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2fa6",
  "rgb": {
    "r": 62,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 247.563,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40519,
    "c": 0.18083,
    "h": 280.3
  },
  "luminance": 0.0581
}

Semantic roles & 50–950 ramp

primary
#3E2FA6
secondary
#B6C170
accent
#DF49CC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3E2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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