#3E398B#3E398B

#3E398B is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.8% C 0.132 H 281.3°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#3E398B
RGBrgb(62, 57, 139)
HSLhsl(244, 42%, 38%)
HSVhsv(244, 59%, 55%)
CMYKcmyk(55.4%, 59%, 0%, 45.5%)
CIE-LABlab(28.94, 26.41, -45.18)
CIE-LCHlch(28.94, 52.33, 300.31°)
OKLaboklab(39.82% 0.0259 -0.1294)
OKLCHoklch(39.82% 0.132 281.3)
XYZxyz(8.1085, 5.8140, 25.1160)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E398B #868B39
analogous
#395D8B #3E398B #67398B
triadic
#3E398B #8B3E39 #398B3E
tetradic
#3E398B #8B395D #868B39 #398B67
square
#3E398B #8B395D #868B39 #398B67
split-complementary
#3E398B #8B6739 #5D8B39
monochromatic
#171534 #2B2760 #3E398B #524CB5 #7C77C7

Accessibility & contrast

On white

9.71
#3E398B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#3E398B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E398B
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E398B#FFFFFF#000000##FFFFFF
##3E398B1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#1B4C5C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3e398b;
/* rgb */ color: rgb(62, 57, 139);
/* oklch */ color: oklch(39.8% 0.132 281.3);
Tailwind
colors: {
  custom: {
    50: '#7a6fad',
    500: '#3e398b',
    950: '#000000',
  },
}
SCSS
$custom: #3e398b;
$custom-light: #7a6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#3e398b",
  "rgb": {
    "r": 62,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 243.659,
    "s": 41.837,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39816,
    "c": 0.13197,
    "h": 281.3
  },
  "luminance": 0.05814
}

Semantic roles & 50–950 ramp

primary
#3E398B
secondary
#ACB06F
accent
#D256CA
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #3E398B

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

Preview Lab → · Contrast checker → · Palette generator →

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