#3E3398#3E3398

#3E3398 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.8% C 0.158 H 281.4°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#3E3398
RGBrgb(62, 51, 152)
HSLhsl(247, 50%, 40%)
HSVhsv(247, 66%, 60%)
CMYKcmyk(59.2%, 66.4%, 0%, 40.4%)
CIE-LABlab(28.53, 34.55, -53.83)
CIE-LCHlch(28.53, 63.97, 302.70°)
OKLaboklab(39.85% 0.0312 -0.1549)
OKLCHoklch(39.85% 0.158 281.4)
XYZxyz(8.8362, 5.6582, 30.3262)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E3398 #8D9833
analogous
#335A98 #3E3398 #713398
triadic
#3E3398 #983E33 #33983E
tetradic
#3E3398 #98335A #8D9833 #339871
square
#3E3398 #98335A #8D9833 #339871
split-complementary
#3E3398 #987133 #5A9833
monochromatic
#19143C #2B246A #3E3398 #5447C1 #7F75D1

Accessibility & contrast

On white

9.85
#3E3398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E3398
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E3398#FFFFFF#000000##FFFFFF
##3E33981.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#064D61
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3e3398;
/* rgb */ color: rgb(62, 51, 152);
/* oklch */ color: oklch(39.8% 0.158 281.4);
Tailwind
colors: {
  custom: {
    50: '#7d6bb7',
    500: '#3e3398',
    950: '#000000',
  },
}
SCSS
$custom: #3e3398;
$custom-light: #7d6bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e3398",
  "rgb": {
    "r": 62,
    "g": 51,
    "b": 152
  },
  "hsl": {
    "h": 246.535,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39848,
    "c": 0.15799,
    "h": 281.4
  },
  "luminance": 0.05659
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E3398

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

Preview Lab → · Contrast checker → · Palette generator →

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