#3E31C3#3E31C3

#3E31C3 is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 43.7% C 0.214 H 276.8°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#3E31C3
RGBrgb(62, 49, 195)
HSLhsl(245, 60%, 48%)
HSVhsv(245, 75%, 76%)
CMYKcmyk(68.2%, 74.9%, 0%, 23.5%)
CIE-LABlab(32.17, 49.55, -73.60)
CIE-LCHlch(32.17, 88.72, 303.95°)
OKLaboklab(43.68% 0.0252 -0.2127)
OKLCHoklch(43.68% 0.214 276.8)
XYZxyz(12.9320, 7.1597, 52.3196)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E31C3 #B6C331
analogous
#316DC3 #3E31C3 #8731C3
triadic
#3E31C3 #C33E31 #31C33E
tetradic
#3E31C3 #C3316D #B6C331 #31C387
square
#3E31C3 #C3316D #B6C331 #31C387
split-complementary
#3E31C3 #C38731 #6DC331
monochromatic
#1F1861 #2E2592 #3E31C3 #665BD6 #948CE2

Accessibility & contrast

On white

8.63
#3E31C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3E31C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E31C3
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E31C3#FFFFFF#000000##FFFFFF
##3E31C31.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C7
Deuteranopia (green-blind)
#0045C0
Tritanopia (blue-blind)
#005B78
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3e31c3;
/* rgb */ color: rgb(62, 49, 195);
/* oklch */ color: oklch(43.7% 0.214 276.8);
Tailwind
colors: {
  custom: {
    50: '#866cd6',
    500: '#3e31c3',
    950: '#000000',
  },
}
SCSS
$custom: #3e31c3;
$custom-light: #866cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e31c3",
  "rgb": {
    "r": 62,
    "g": 49,
    "b": 195
  },
  "hsl": {
    "h": 245.342,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.43676,
    "c": 0.21419,
    "h": 276.8
  },
  "luminance": 0.07161
}

Semantic roles & 50–950 ramp

primary
#3E31C3
secondary
#C6CC83
accent
#E345D5
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3E31C3

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

Preview Lab → · Contrast checker → · Palette generator →

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