#3E31AE#3E31AE

#3E31AE is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.6% C 0.189 H 279.0°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#3E31AE
RGBrgb(62, 49, 174)
HSLhsl(246, 56%, 44%)
HSVhsv(246, 72%, 68%)
CMYKcmyk(64.4%, 71.8%, 0%, 31.8%)
CIE-LABlab(30.10, 42.90, -64.57)
CIE-LCHlch(30.10, 77.52, 303.60°)
OKLaboklab(41.59% 0.0295 -0.1863)
OKLCHoklch(41.59% 0.189 279)
XYZxyz(10.7225, 6.2759, 40.6825)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E31AE #A1AE31
analogous
#3162AE #3E31AE #7C31AE
triadic
#3E31AE #AE3E31 #31AE3E
tetradic
#3E31AE #AE3162 #A1AE31 #31AE7C
square
#3E31AE #AE3162 #A1AE31 #31AE7C
split-complementary
#3E31AE #AE7C31 #62AE31
monochromatic
#1C164E #2D247E #3E31AE #5C4FCD #887FDB

Accessibility & contrast

On white

9.31
#3E31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#3E31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E31AE
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E31AE#FFFFFF#000000##FFFFFF
##3E31AE1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB2
Deuteranopia (green-blind)
#0042AC
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3e31ae;
/* rgb */ color: rgb(62, 49, 174);
/* oklch */ color: oklch(41.6% 0.189 279.0);
Tailwind
colors: {
  custom: {
    50: '#816bc7',
    500: '#3e31ae',
    950: '#000000',
  },
}
SCSS
$custom: #3e31ae;
$custom-light: #816bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e31ae",
  "rgb": {
    "r": 62,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 246.24,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41585,
    "c": 0.18866,
    "h": 279
  },
  "luminance": 0.06277
}

Semantic roles & 50–950 ramp

primary
#3E31AE
secondary
#BCC477
accent
#DF48D0
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3E31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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