#3E31DB#3E31DB

#3E31DB is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 46.2% C 0.242 H 274.7°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#3E31DB
RGBrgb(62, 49, 219)
HSLhsl(245, 70%, 53%)
HSVhsv(245, 78%, 86%)
CMYKcmyk(71.7%, 77.6%, 0%, 14.1%)
CIE-LABlab(34.67, 56.91, -83.41)
CIE-LCHlch(34.67, 100.97, 304.31°)
OKLaboklab(46.17% 0.0198 -0.2412)
OKLCHoklch(46.17% 0.242 274.7)
XYZxyz(15.8669, 8.3337, 67.7765)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E31DB #CEDB31
analogous
#3179DB #3E31DB #9331DB
triadic
#3E31DB #DB3E31 #31DB3E
tetradic
#3E31DB #DB3179 #CEDB31 #31DB93
square
#3E31DB #DB3179 #CEDB31 #31DB93
split-complementary
#3E31DB #DB9331 #79DB31
monochromatic
#1D167C #2A1FB0 #3E31DB #6F65E4 #A099ED

Accessibility & contrast

On white

7.87
#3E31DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3E31DB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E31DB
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E31DB#FFFFFF#000000##FFFFFF
##3E31DB1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059E0
Deuteranopia (green-blind)
#004AD8
Tritanopia (blue-blind)
#006586
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3e31db;
/* rgb */ color: rgb(62, 49, 219);
/* oklch */ color: oklch(46.2% 0.242 274.7);
Tailwind
colors: {
  custom: {
    50: '#8b6de8',
    500: '#3e31db',
    950: '#000000',
  },
}
SCSS
$custom: #3e31db;
$custom-light: #8b6de8;
$custom-dark: #000000;
JSON
{
  "hex": "#3e31db",
  "rgb": {
    "r": 62,
    "g": 49,
    "b": 219
  },
  "hsl": {
    "h": 244.588,
    "s": 70.248,
    "l": 52.549
  },
  "oklch": {
    "l": 0.46172,
    "c": 0.24203,
    "h": 274.7
  },
  "luminance": 0.08335
}

Semantic roles & 50–950 ramp

primary
#3E31DB
secondary
#D3D98F
accent
#ED3BDF
background
#F9F6FE
surface
#F2ECFD
border
#CCC7D5
text
#0E0716
muted
#7E7A84

Preview Lab

Preview with #3E31DB

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

Preview Lab → · Contrast checker → · Palette generator →

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