#3E31C2#3E31C2

#3E31C2 is a dark, highly saturated blue. Relative luminance 0.071; OKLCH L 43.6% C 0.213 H 276.9°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#3E31C2
RGBrgb(62, 49, 194)
HSLhsl(245, 60%, 48%)
HSVhsv(245, 75%, 76%)
CMYKcmyk(68%, 74.7%, 0%, 23.9%)
CIE-LABlab(32.07, 49.23, -73.18)
CIE-LCHlch(32.07, 88.20, 303.93°)
OKLaboklab(43.57% 0.0254 -0.2115)
OKLCHoklch(43.57% 0.213 276.9)
XYZxyz(12.8194, 7.1147, 51.7262)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E31C2 #B5C231
analogous
#316DC2 #3E31C2 #8631C2
triadic
#3E31C2 #C23E31 #31C23E
tetradic
#3E31C2 #C2316D #B5C231 #31C286
square
#3E31C2 #C2316D #B5C231 #31C286
split-complementary
#3E31C2 #C28631 #6DC231
monochromatic
#1F1860 #2E2591 #3E31C2 #665BD6 #938CE2

Accessibility & contrast

On white

8.67
#3E31C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#3E31C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E31C2
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E31C2#FFFFFF#000000##FFFFFF
##3E31C21.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C6
Deuteranopia (green-blind)
#0045BF
Tritanopia (blue-blind)
#005B77
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3e31c2;
/* rgb */ color: rgb(62, 49, 194);
/* oklch */ color: oklch(43.6% 0.213 276.9);
Tailwind
colors: {
  custom: {
    50: '#866cd6',
    500: '#3e31c2',
    950: '#000000',
  },
}
SCSS
$custom: #3e31c2;
$custom-light: #866cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e31c2",
  "rgb": {
    "r": 62,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 245.379,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.43574,
    "c": 0.21299,
    "h": 276.9
  },
  "luminance": 0.07116
}

Semantic roles & 50–950 ramp

primary
#3E31C2
secondary
#C5CC83
accent
#E345D5
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #3E31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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