#3E3399#3E3399

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

Color values

HEX#3E3399
RGBrgb(62, 51, 153)
HSLhsl(246, 50%, 40%)
HSVhsv(246, 67%, 60%)
CMYKcmyk(59.5%, 66.7%, 0%, 40%)
CIE-LABlab(28.62, 34.88, -54.30)
CIE-LCHlch(28.62, 64.54, 302.72°)
OKLaboklab(39.94% 0.0311 -0.1562)
OKLCHoklch(39.94% 0.159 281.3)
XYZxyz(8.9184, 5.6911, 30.7593)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E3399 #8E9933
analogous
#335B99 #3E3399 #713399
triadic
#3E3399 #993E33 #33993E
tetradic
#3E3399 #99335B #8E9933 #339971
square
#3E3399 #99335B #8E9933 #339971
split-complementary
#3E3399 #997133 #5B9933
monochromatic
#19143D #2B246B #3E3399 #5547C2 #7F75D1

Accessibility & contrast

On white

9.82
#3E3399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E3399
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E3399#FFFFFF#000000##FFFFFF
##3E33991.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#004097
Tritanopia (blue-blind)
#034D61
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3e3399;
/* rgb */ color: rgb(62, 51, 153);
/* oklch */ color: oklch(39.9% 0.159 281.3);
Tailwind
colors: {
  custom: {
    50: '#7d6bb8',
    500: '#3e3399',
    950: '#000000',
  },
}
SCSS
$custom: #3e3399;
$custom-light: #7d6bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#3e3399",
  "rgb": {
    "r": 62,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 246.471,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.39937,
    "c": 0.15932,
    "h": 281.3
  },
  "luminance": 0.05692
}

Semantic roles & 50–950 ramp

primary
#3E3399
secondary
#B1B96E
accent
#DA4ECA
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #3E3399

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

Preview Lab → · Contrast checker → · Palette generator →

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