#3D31E2#3D31E2

#3D31E2 is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.9% C 0.250 H 273.9°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#3D31E2
RGBrgb(61, 49, 226)
HSLhsl(244, 75%, 54%)
HSVhsv(244, 78%, 89%)
CMYKcmyk(73%, 78.3%, 0%, 11.4%)
CIE-LABlab(35.36, 58.94, -86.28)
CIE-LCHlch(35.36, 104.49, 304.34°)
OKLaboklab(46.86% 0.0169 -0.2496)
OKLCHoklch(46.86% 0.25 273.9)
XYZxyz(16.7457, 8.6780, 72.7293)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31E2 #D6E231
analogous
#317EE2 #3D31E2 #9631E2
triadic
#3D31E2 #E23D31 #31E23D
tetradic
#3D31E2 #E2317E #D6E231 #31E296
square
#3D31E2 #E2317E #D6E231 #31E296
split-complementary
#3D31E2 #E29631 #7EE231
monochromatic
#1B1386 #251ABB #3D31E2 #7067EA #A29CF1

Accessibility & contrast

On white

7.68
#3D31E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#3D31E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D31E2
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D31E2#FFFFFF#000000##FFFFFF
##3D31E21.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BE7
Deuteranopia (green-blind)
#004BDF
Tritanopia (blue-blind)
#00688A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3d31e2;
/* rgb */ color: rgb(61, 49, 226);
/* oklch */ color: oklch(46.9% 0.250 273.9);
Tailwind
colors: {
  custom: {
    50: '#8c6ded',
    500: '#3d31e2',
    950: '#000000',
  },
}
SCSS
$custom: #3d31e2;
$custom-light: #8c6ded;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31e2",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 244.068,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.46856,
    "c": 0.25016,
    "h": 273.9
  },
  "luminance": 0.0868
}

Semantic roles & 50–950 ramp

primary
#3D31E2
secondary
#D8DD92
accent
#F236E5
background
#F9F6FE
surface
#F2ECFD
border
#CCC7D5
text
#0E0717
muted
#7E7A85

Preview Lab

Preview with #3D31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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