#3E2FA7#3E2FA7

#3E2FA7 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.6% C 0.182 H 280.2°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#3E2FA7
RGBrgb(62, 47, 167)
HSLhsl(248, 56%, 42%)
HSVhsv(248, 72%, 65%)
CMYKcmyk(62.9%, 71.9%, 0%, 34.5%)
CIE-LABlab(29.02, 41.80, -62.14)
CIE-LCHlch(29.02, 74.88, 303.93°)
OKLaboklab(40.62% 0.0322 -0.1792)
OKLCHoklch(40.62% 0.182 280.2)
XYZxyz(9.9760, 5.8464, 37.1545)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2FA7 #98A72F
analogous
#2F5CA7 #3E2FA7 #7A2FA7
triadic
#3E2FA7 #A73E2F #2FA73E
tetradic
#3E2FA7 #A72F5C #98A72F #2FA77A
square
#3E2FA7 #A72F5C #98A72F #2FA77A
split-complementary
#3E2FA7 #A77A2F #5CA72F
monochromatic
#1B1447 #2C2277 #3E2FA7 #5848CB #8478D9

Accessibility & contrast

On white

9.68
#3E2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#3E2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2FA7
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2FA7#FFFFFF#000000##FFFFFF
##3E2FA71.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3e2fa7;
/* rgb */ color: rgb(62, 47, 167);
/* oklch */ color: oklch(40.6% 0.182 280.2);
Tailwind
colors: {
  custom: {
    50: '#8069c2',
    500: '#3e2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #3e2fa7;
$custom-light: #8069c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2fa7",
  "rgb": {
    "r": 62,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 247.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40616,
    "c": 0.18209,
    "h": 280.2
  },
  "luminance": 0.05847
}

Semantic roles & 50–950 ramp

primary
#3E2FA7
secondary
#B7C171
accent
#DF48CD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3E2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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