#3E31AD#3E31AD

#3E31AD is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.5% C 0.187 H 279.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#3E31AD
RGBrgb(62, 49, 173)
HSLhsl(246, 56%, 44%)
HSVhsv(246, 72%, 68%)
CMYKcmyk(64.2%, 71.7%, 0%, 32.2%)
CIE-LABlab(30.00, 42.58, -64.13)
CIE-LCHlch(30.00, 76.98, 303.58°)
OKLaboklab(41.49% 0.0297 -0.185)
OKLCHoklch(41.49% 0.187 279.1)
XYZxyz(10.6253, 6.2370, 40.1710)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E31AD #A0AD31
analogous
#3162AD #3E31AD #7C31AD
triadic
#3E31AD #AD3E31 #31AD3E
tetradic
#3E31AD #AD3162 #A0AD31 #31AD7C
square
#3E31AD #AD3162 #A0AD31 #31AD7C
split-complementary
#3E31AD #AD7C31 #62AD31
monochromatic
#1C164E #2D237D #3E31AD #5C4ECD #887EDA

Accessibility & contrast

On white

9.34
#3E31AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#3E31AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E31AD
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E31AD#FFFFFF#000000##FFFFFF
##3E31AD1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB1
Deuteranopia (green-blind)
#0042AB
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3e31ad;
/* rgb */ color: rgb(62, 49, 173);
/* oklch */ color: oklch(41.5% 0.187 279.1);
Tailwind
colors: {
  custom: {
    50: '#816bc7',
    500: '#3e31ad',
    950: '#000000',
  },
}
SCSS
$custom: #3e31ad;
$custom-light: #816bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e31ad",
  "rgb": {
    "r": 62,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 246.29,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.41489,
    "c": 0.1874,
    "h": 279.1
  },
  "luminance": 0.06238
}

Semantic roles & 50–950 ramp

primary
#3E31AD
secondary
#BBC377
accent
#DF49CF
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3E31AD

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

Preview Lab → · Contrast checker → · Palette generator →

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