#3E3397#3E3397

#3E3397 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.8% C 0.157 H 281.5°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#3E3397
RGBrgb(62, 51, 151)
HSLhsl(247, 50%, 40%)
HSVhsv(247, 66%, 59%)
CMYKcmyk(58.9%, 66.2%, 0%, 40.8%)
CIE-LABlab(28.45, 34.22, -53.36)
CIE-LCHlch(28.45, 63.39, 302.67°)
OKLaboklab(39.76% 0.0313 -0.1535)
OKLCHoklch(39.76% 0.157 281.5)
XYZxyz(8.7546, 5.6256, 29.8967)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E3397 #8C9733
analogous
#335A97 #3E3397 #703397
triadic
#3E3397 #973E33 #33973E
tetradic
#3E3397 #97335A #8C9733 #339770
square
#3E3397 #97335A #8C9733 #339770
split-complementary
#3E3397 #977033 #5A9733
monochromatic
#18143C #2B2469 #3E3397 #5447C1 #7E74D0

Accessibility & contrast

On white

9.88
#3E3397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#3E3397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E3397
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E3397#FFFFFF#000000##FFFFFF
##3E33971.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#094C60
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3e3397;
/* rgb */ color: rgb(62, 51, 151);
/* oklch */ color: oklch(39.8% 0.157 281.5);
Tailwind
colors: {
  custom: {
    50: '#7d6bb6',
    500: '#3e3397',
    950: '#000000',
  },
}
SCSS
$custom: #3e3397;
$custom-light: #7d6bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e3397",
  "rgb": {
    "r": 62,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 246.6,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39759,
    "c": 0.15666,
    "h": 281.5
  },
  "luminance": 0.05626
}

Semantic roles & 50–950 ramp

primary
#3E3397
secondary
#B0B86D
accent
#D94FCA
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #3E3397

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

Preview Lab → · Contrast checker → · Palette generator →

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