#3E3897#3E3897

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

Color values

HEX#3E3897
RGBrgb(62, 56, 151)
HSLhsl(244, 46%, 41%)
HSVhsv(244, 63%, 59%)
CMYKcmyk(58.9%, 62.9%, 0%, 40.8%)
CIE-LABlab(29.63, 31.09, -51.43)
CIE-LCHlch(29.63, 60.10, 301.15°)
OKLaboklab(40.62% 0.0265 -0.1478)
OKLCHoklch(40.62% 0.15 280.2)
XYZxyz(8.9849, 6.0862, 29.9735)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E3897 #919738
analogous
#386297 #3E3897 #6D3897
triadic
#3E3897 #973E38 #38973E
tetradic
#3E3897 #973862 #919738 #38976D
square
#3E3897 #973862 #919738 #38976D
split-complementary
#3E3897 #976D38 #629738
monochromatic
#19173E #2C276A #3E3897 #564FBE #807BCE

Accessibility & contrast

On white

9.47
#3E3897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#3E3897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E3897
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E3897#FFFFFF#000000##FFFFFF
##3E38971.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#074F62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3e3897;
/* rgb */ color: rgb(62, 56, 151);
/* oklch */ color: oklch(40.6% 0.150 280.2);
Tailwind
colors: {
  custom: {
    50: '#7d6fb6',
    500: '#3e3897',
    950: '#000000',
  },
}
SCSS
$custom: #3e3897;
$custom-light: #7d6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e3897",
  "rgb": {
    "r": 62,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 243.789,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4062,
    "c": 0.15017,
    "h": 280.2
  },
  "luminance": 0.06087
}

Semantic roles & 50–950 ramp

primary
#3E3897
secondary
#B3B773
accent
#D652CD
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3E3897

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

Preview Lab → · Contrast checker → · Palette generator →

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