#3B31E2#3B31E2

#3B31E2 is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 46.7% C 0.251 H 273.3°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#3B31E2
RGBrgb(59, 49, 226)
HSLhsl(243, 75%, 54%)
HSVhsv(243, 78%, 89%)
CMYKcmyk(73.9%, 78.3%, 0%, 11.4%)
CIE-LABlab(35.23, 58.79, -86.49)
CIE-LCHlch(35.23, 104.58, 304.21°)
OKLaboklab(46.74% 0.0145 -0.2502)
OKLCHoklch(46.74% 0.251 273.3)
XYZxyz(16.6248, 8.6157, 72.7236)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B31E2 #D8E231
analogous
#3180E2 #3B31E2 #9431E2
triadic
#3B31E2 #E23B31 #31E23B
tetradic
#3B31E2 #E23180 #D8E231 #31E294
square
#3B31E2 #E23180 #D8E231 #31E294
split-complementary
#3B31E2 #E29431 #80E231
monochromatic
#191386 #231ABB #3B31E2 #6E67EA #A19CF1

Accessibility & contrast

On white

7.71
#3B31E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#3B31E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B31E2
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B31E2#FFFFFF#000000##FFFFFF
##3B31E21.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b31e2;
/* rgb */ color: rgb(59, 49, 226);
/* oklch */ color: oklch(46.7% 0.251 273.3);
Tailwind
colors: {
  custom: {
    50: '#8b6ded',
    500: '#3b31e2',
    950: '#000000',
  },
}
SCSS
$custom: #3b31e2;
$custom-light: #8b6ded;
$custom-dark: #000000;
JSON
{
  "hex": "#3b31e2",
  "rgb": {
    "r": 59,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 243.39,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.46737,
    "c": 0.25065,
    "h": 273.3
  },
  "luminance": 0.08617
}

Semantic roles & 50–950 ramp

primary
#3B31E2
secondary
#D9DD92
accent
#F236E7
background
#F9F6FE
surface
#F2ECFD
border
#CCC7D5
text
#0E0717
muted
#7E7A85

Preview Lab

Preview with #3B31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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