#3E3797#3E3797

#3E3797 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.151 H 280.5°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#3E3797
RGBrgb(62, 55, 151)
HSLhsl(244, 47%, 40%)
HSVhsv(244, 64%, 59%)
CMYKcmyk(58.9%, 63.6%, 0%, 40.8%)
CIE-LABlab(29.39, 31.73, -51.83)
CIE-LCHlch(29.39, 60.77, 301.47°)
OKLaboklab(40.44% 0.0275 -0.149)
OKLCHoklch(40.44% 0.151 280.5)
XYZxyz(8.9370, 5.9903, 29.9575)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E3797 #909737
analogous
#376097 #3E3797 #6E3797
triadic
#3E3797 #973E37 #37973E
tetradic
#3E3797 #973760 #909737 #37976E
square
#3E3797 #973760 #909737 #37976E
split-complementary
#3E3797 #976E37 #609737
monochromatic
#19163D #2C276A #3E3797 #554DBE #807ACF

Accessibility & contrast

On white

9.55
#3E3797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#3E3797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E3797
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E3797#FFFFFF#000000##FFFFFF
##3E37971.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e3797;
/* rgb */ color: rgb(62, 55, 151);
/* oklch */ color: oklch(40.4% 0.151 280.5);
Tailwind
colors: {
  custom: {
    50: '#7d6eb6',
    500: '#3e3797',
    950: '#000000',
  },
}
SCSS
$custom: #3e3797;
$custom-light: #7d6eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e3797",
  "rgb": {
    "r": 62,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 244.375,
    "s": 46.602,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40444,
    "c": 0.15149,
    "h": 280.5
  },
  "luminance": 0.05991
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E3797

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

Preview Lab → · Contrast checker → · Palette generator →

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