#3A31C5#3A31C5

#3A31C5 is a dark, highly saturated blue. Relative luminance 0.071; OKLCH L 43.6% C 0.217 H 275.2°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#3A31C5
RGBrgb(58, 49, 197)
HSLhsl(244, 60%, 48%)
HSVhsv(244, 75%, 77%)
CMYKcmyk(70.6%, 75.1%, 0%, 22.7%)
CIE-LABlab(32.09, 49.78, -74.91)
CIE-LCHlch(32.09, 89.94, 303.60°)
OKLaboklab(43.61% 0.0196 -0.2166)
OKLCHoklch(43.61% 0.217 275.2)
XYZxyz(12.9180, 7.1261, 53.5072)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A31C5 #BCC531
analogous
#3172C5 #3A31C5 #8431C5
triadic
#3A31C5 #C53A31 #31C53A
tetradic
#3A31C5 #C53172 #BCC531 #31C584
square
#3A31C5 #C53172 #BCC531 #31C584
split-complementary
#3A31C5 #C58431 #72C531
monochromatic
#1D1963 #2C2594 #3A31C5 #645DD7 #938EE3

Accessibility & contrast

On white

8.66
#3A31C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3A31C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A31C5
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A31C5#FFFFFF#000000##FFFFFF
##3A31C51.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C9
Deuteranopia (green-blind)
#0045C2
Tritanopia (blue-blind)
#005C79
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3a31c5;
/* rgb */ color: rgb(58, 49, 197);
/* oklch */ color: oklch(43.6% 0.217 275.2);
Tailwind
colors: {
  custom: {
    50: '#856cd8',
    500: '#3a31c5',
    950: '#000000',
  },
}
SCSS
$custom: #3a31c5;
$custom-light: #856cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a31c5",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 243.649,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.43611,
    "c": 0.21749,
    "h": 275.2
  },
  "luminance": 0.07127
}

Semantic roles & 50–950 ramp

primary
#3A31C5
secondary
#C9CD85
accent
#E344DA
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3A31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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