#3E3497#3E3497

#3E3497 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.9% C 0.155 H 281.3°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#3E3497
RGBrgb(62, 52, 151)
HSLhsl(246, 49%, 40%)
HSVhsv(246, 66%, 59%)
CMYKcmyk(58.9%, 65.6%, 0%, 40.8%)
CIE-LABlab(28.68, 33.60, -52.98)
CIE-LCHlch(28.68, 62.74, 302.39°)
OKLaboklab(39.93% 0.0304 -0.1524)
OKLCHoklch(39.93% 0.155 281.3)
XYZxyz(8.7988, 5.7139, 29.9114)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E3497 #8D9734
analogous
#345B97 #3E3497 #703497
triadic
#3E3497 #973E34 #34973E
tetradic
#3E3497 #97345B #8D9734 #349770
square
#3E3497 #97345B #8D9734 #349770
split-complementary
#3E3497 #977034 #5B9734
monochromatic
#19153C #2B2469 #3E3497 #5448C0 #7F76D0

Accessibility & contrast

On white

9.80
#3E3497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#3E3497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E3497
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E3497#FFFFFF#000000##FFFFFF
##3E34971.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#084D60
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3e3497;
/* rgb */ color: rgb(62, 52, 151);
/* oklch */ color: oklch(39.9% 0.155 281.3);
Tailwind
colors: {
  custom: {
    50: '#7d6cb6',
    500: '#3e3497',
    950: '#000000',
  },
}
SCSS
$custom: #3e3497;
$custom-light: #7d6cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e3497",
  "rgb": {
    "r": 62,
    "g": 52,
    "b": 151
  },
  "hsl": {
    "h": 246.061,
    "s": 48.768,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39927,
    "c": 0.15538,
    "h": 281.3
  },
  "luminance": 0.05714
}

Semantic roles & 50–950 ramp

primary
#3E3497
secondary
#B1B86F
accent
#D84FCB
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3E3497

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

Preview Lab → · Contrast checker → · Palette generator →

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