#3E408F#3E408F

#3E408F is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.128 H 278.2°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#3E408F
RGBrgb(62, 64, 143)
HSLhsl(239, 40%, 40%)
HSVhsv(239, 57%, 56%)
CMYKcmyk(56.6%, 55.2%, 0%, 43.9%)
CIE-LABlab(31.05, 23.18, -44.23)
CIE-LCHlch(31.05, 49.94, 297.66°)
OKLaboklab(41.48% 0.0182 -0.1266)
OKLCHoklch(41.48% 0.128 278.2)
XYZxyz(8.7764, 6.6735, 26.8069)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E408F #8F8D3E
analogous
#3E688F #3E408F #653E8F
triadic
#3E408F #8F3E40 #408F3E
tetradic
#3E408F #8F3E68 #8F8D3E #3E8F65
square
#3E408F #8F3E68 #8F8D3E #3E8F65
split-complementary
#3E408F #8F653E #688F3E
monochromatic
#191A3A #2B2D64 #3E408F #5557B5 #8081C8

Accessibility & contrast

On white

8.99
#3E408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#3E408F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E408F
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E408F#FFFFFF#000000##FFFFFF
##3E408F1.008.992.338.99
#FFFFFF8.991.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104C92
Deuteranopia (green-blind)
#00468D
Tritanopia (blue-blind)
#155261
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3e408f;
/* rgb */ color: rgb(62, 64, 143);
/* oklch */ color: oklch(41.5% 0.128 278.2);
Tailwind
colors: {
  custom: {
    50: '#7b74b0',
    500: '#3e408f',
    950: '#000000',
  },
}
SCSS
$custom: #3e408f;
$custom-light: #7b74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e408f",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 238.519,
    "s": 39.512,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41481,
    "c": 0.12785,
    "h": 278.2
  },
  "luminance": 0.06674
}

Semantic roles & 50–950 ramp

primary
#3E408F
secondary
#B2B077
accent
#CC58CF
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #3E408F

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

Preview Lab → · Contrast checker → · Palette generator →

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