#3E398D#3E398D

#3E398D is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.0% C 0.135 H 281.1°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#3E398D
RGBrgb(62, 57, 141)
HSLhsl(244, 42%, 39%)
HSVhsv(244, 60%, 55%)
CMYKcmyk(56%, 59.6%, 0%, 44.7%)
CIE-LABlab(29.09, 27.08, -46.17)
CIE-LCHlch(29.09, 53.53, 300.40°)
OKLaboklab(39.98% 0.0259 -0.1323)
OKLCHoklch(39.98% 0.135 281.1)
XYZxyz(8.2560, 5.8730, 25.8927)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E398D #888D39
analogous
#395E8D #3E398D #68398D
triadic
#3E398D #8D3E39 #398D3E
tetradic
#3E398D #8D395E #888D39 #398D68
square
#3E398D #8D395E #888D39 #398D68
split-complementary
#3E398D #8D6839 #5E8D39
monochromatic
#181636 #2B2761 #3E398D #534CB7 #7D78C8

Accessibility & contrast

On white

9.66
#3E398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#3E398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E398D
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E398D#FFFFFF#000000##FFFFFF
##3E398D1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#194D5D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3e398d;
/* rgb */ color: rgb(62, 57, 141);
/* oklch */ color: oklch(40.0% 0.135 281.1);
Tailwind
colors: {
  custom: {
    50: '#7b6faf',
    500: '#3e398d',
    950: '#000000',
  },
}
SCSS
$custom: #3e398d;
$custom-light: #7b6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e398d",
  "rgb": {
    "r": 62,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 243.571,
    "s": 42.424,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39976,
    "c": 0.13484,
    "h": 281.1
  },
  "luminance": 0.05873
}

Semantic roles & 50–950 ramp

primary
#3E398D
secondary
#AEB270
accent
#D256CB
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #3E398D

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

Preview Lab → · Contrast checker → · Palette generator →

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