#3A31E2#3A31E2

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

Color values

HEX#3A31E2
RGBrgb(58, 49, 226)
HSLhsl(243, 75%, 54%)
HSVhsv(243, 78%, 89%)
CMYKcmyk(74.3%, 78.3%, 0%, 11.4%)
CIE-LABlab(35.17, 58.72, -86.59)
CIE-LCHlch(35.17, 104.62, 304.14°)
OKLaboklab(46.68% 0.0133 -0.2505)
OKLCHoklch(46.68% 0.251 273)
XYZxyz(16.5661, 8.5854, 72.7208)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A31E2 #D9E231
analogous
#3181E2 #3A31E2 #9331E2
triadic
#3A31E2 #E23A31 #31E23A
tetradic
#3A31E2 #E23181 #D9E231 #31E293
square
#3A31E2 #E23181 #D9E231 #31E293
split-complementary
#3A31E2 #E29331 #81E231
monochromatic
#191386 #231ABB #3A31E2 #6D67EA #A19CF1

Accessibility & contrast

On white

7.73
#3A31E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A31E2
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A31E2#FFFFFF#000000##FFFFFF
##3A31E21.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.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: #3a31e2;
/* rgb */ color: rgb(58, 49, 226);
/* oklch */ color: oklch(46.7% 0.251 273.0);
Tailwind
colors: {
  custom: {
    50: '#8b6ded',
    500: '#3a31e2',
    950: '#000000',
  },
}
SCSS
$custom: #3a31e2;
$custom-light: #8b6ded;
$custom-dark: #000000;
JSON
{
  "hex": "#3a31e2",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 243.051,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.46679,
    "c": 0.2509,
    "h": 273
  },
  "luminance": 0.08587
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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