#3A31DA#3A31DA

#3A31DA is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.8% C 0.242 H 273.6°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#3A31DA
RGBrgb(58, 49, 218)
HSLhsl(243, 70%, 52%)
HSVhsv(243, 78%, 85%)
CMYKcmyk(73.4%, 77.5%, 0%, 14.5%)
CIE-LABlab(34.31, 56.30, -83.44)
CIE-LCHlch(34.31, 100.65, 304.01°)
OKLaboklab(45.82% 0.0151 -0.2414)
OKLCHoklch(45.82% 0.242 273.6)
XYZxyz(15.4939, 8.1565, 67.0739)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A31DA #D1DA31
analogous
#317DDA #3A31DA #8E31DA
triadic
#3A31DA #DA3A31 #31DA3A
tetradic
#3A31DA #DA317D #D1DA31 #31DA8E
square
#3A31DA #DA317D #D1DA31 #31DA8E
split-complementary
#3A31DA #DA8E31 #7DDA31
monochromatic
#1B167B #271FAE #3A31DA #6C65E3 #9D99ED

Accessibility & contrast

On white

7.98
#3A31DA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#3A31DA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A31DA
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A31DA#FFFFFF#000000##FFFFFF
##3A31DA1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058DF
Deuteranopia (green-blind)
#0049D7
Tritanopia (blue-blind)
#006485
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a31da;
/* rgb */ color: rgb(58, 49, 218);
/* oklch */ color: oklch(45.8% 0.242 273.6);
Tailwind
colors: {
  custom: {
    50: '#896de7',
    500: '#3a31da',
    950: '#000000',
  },
}
SCSS
$custom: #3a31da;
$custom-light: #896de7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a31da",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 218
  },
  "hsl": {
    "h": 243.195,
    "s": 69.547,
    "l": 52.353
  },
  "oklch": {
    "l": 0.4582,
    "c": 0.24187,
    "h": 273.6
  },
  "luminance": 0.08158
}

Semantic roles & 50–950 ramp

primary
#3A31DA
secondary
#D4D88F
accent
#EC3BE3
background
#F9F6FE
surface
#F2ECFD
border
#CCC7D5
text
#0E0716
muted
#7E7A84

Preview Lab

Preview with #3A31DA

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

Preview Lab → · Contrast checker → · Palette generator →

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