#3731E2#3731E2

#3731E2 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 46.5% C 0.252 H 272.2°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#3731E2
RGBrgb(55, 49, 226)
HSLhsl(242, 75%, 54%)
HSVhsv(242, 78%, 89%)
CMYKcmyk(75.7%, 78.3%, 0%, 11.4%)
CIE-LABlab(35.00, 58.52, -86.89)
CIE-LCHlch(35.00, 104.75, 303.96°)
OKLaboklab(46.51% 0.0099 -0.2515)
OKLCHoklch(46.51% 0.252 272.2)
XYZxyz(16.3967, 8.4981, 72.7129)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3731E2 #DCE231
analogous
#3184E2 #3731E2 #9031E2
triadic
#3731E2 #E23731 #31E237
tetradic
#3731E2 #E23184 #DCE231 #31E290
square
#3731E2 #E23184 #DCE231 #31E290
split-complementary
#3731E2 #E29031 #84E231
monochromatic
#171386 #201ABB #3731E2 #6B67EA #9F9CF1

Accessibility & contrast

On white

7.78
#3731E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3731E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3731E2
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3731E2#FFFFFF#000000##FFFFFF
##3731E21.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BE7
Deuteranopia (green-blind)
#0049DF
Tritanopia (blue-blind)
#00688A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3731e2;
/* rgb */ color: rgb(55, 49, 226);
/* oklch */ color: oklch(46.5% 0.252 272.2);
Tailwind
colors: {
  custom: {
    50: '#8a6ded',
    500: '#3731e2',
    950: '#000000',
  },
}
SCSS
$custom: #3731e2;
$custom-light: #8a6ded;
$custom-dark: #000000;
JSON
{
  "hex": "#3731e2",
  "rgb": {
    "r": 55,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 242.034,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.46511,
    "c": 0.25165,
    "h": 272.2
  },
  "luminance": 0.085
}

Semantic roles & 50–950 ramp

primary
#3731E2
secondary
#DBDD92
accent
#F236EC
background
#F9F6FE
surface
#F2ECFD
border
#CCC7D5
text
#0E0717
muted
#7E7A85

Preview Lab

Preview with #3731E2

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

Preview Lab → · Contrast checker → · Palette generator →

#3731E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva