#3131E2#3131E2

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

Color values

HEX#3131E2
RGBrgb(49, 49, 226)
HSLhsl(240, 75%, 54%)
HSVhsv(240, 78%, 89%)
CMYKcmyk(78.3%, 78.3%, 0%, 11.4%)
CIE-LABlab(34.68, 58.14, -87.43)
CIE-LCHlch(34.68, 104.99, 303.62°)
OKLaboklab(46.2% 0.0033 -0.2531)
OKLCHoklch(46.2% 0.253 270.7)
XYZxyz(16.0877, 8.3388, 72.6984)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131E2 #E2E231
analogous
#318AE2 #3131E2 #8A31E2
triadic
#3131E2 #E23131 #31E231
tetradic
#3131E2 #E2318A #E2E231 #31E28A
square
#3131E2 #E2318A #E2E231 #31E28A
split-complementary
#3131E2 #E28A31 #8AE231
monochromatic
#131386 #1A1ABB #3131E2 #6767EA #9C9CF1

Accessibility & contrast

On white

7.87
#3131E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3131E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131E2
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131E2#FFFFFF#000000##FFFFFF
##3131E21.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)
#005AE7
Deuteranopia (green-blind)
#0048DF
Tritanopia (blue-blind)
#00688A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3131e2;
/* rgb */ color: rgb(49, 49, 226);
/* oklch */ color: oklch(46.2% 0.253 270.7);
Tailwind
colors: {
  custom: {
    50: '#886ded',
    500: '#3131e2',
    950: '#000000',
  },
}
SCSS
$custom: #3131e2;
$custom-light: #886ded;
$custom-dark: #000000;
JSON
{
  "hex": "#3131e2",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 240,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.46201,
    "c": 0.25315,
    "h": 270.7
  },
  "luminance": 0.08341
}

Semantic roles & 50–950 ramp

primary
#3131E2
secondary
#DDDD92
accent
#F236F2
background
#F9F6FE
surface
#F2ECFD
border
#CCC7D5
text
#0E0717
muted
#7E7A85

Preview Lab

Preview with #3131E2

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

Preview Lab → · Contrast checker → · Palette generator →

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