#3A31C7#3A31C7

#3A31C7 is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 43.8% C 0.220 H 275.0°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#3A31C7
RGBrgb(58, 49, 199)
HSLhsl(244, 60%, 49%)
HSVhsv(244, 75%, 78%)
CMYKcmyk(70.9%, 75.4%, 0%, 22%)
CIE-LABlab(32.30, 50.41, -75.74)
CIE-LCHlch(32.30, 90.98, 303.65°)
OKLaboklab(43.82% 0.0192 -0.219)
OKLCHoklch(43.82% 0.22 275)
XYZxyz(13.1486, 7.2184, 54.7221)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A31C7 #BEC731
analogous
#3173C7 #3A31C7 #8531C7
triadic
#3A31C7 #C73A31 #31C73A
tetradic
#3A31C7 #C73173 #BEC731 #31C785
square
#3A31C7 #C73173 #BEC731 #31C785
split-complementary
#3A31C7 #C78531 #73C731
monochromatic
#1D1965 #2C2596 #3A31C7 #655ED7 #948FE3

Accessibility & contrast

On white

8.59
#3A31C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#3A31C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A31C7
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A31C7#FFFFFF#000000##FFFFFF
##3A31C71.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CB
Deuteranopia (green-blind)
#0045C4
Tritanopia (blue-blind)
#005D7A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3a31c7;
/* rgb */ color: rgb(58, 49, 199);
/* oklch */ color: oklch(43.8% 0.220 275.0);
Tailwind
colors: {
  custom: {
    50: '#856cd9',
    500: '#3a31c7',
    950: '#000000',
  },
}
SCSS
$custom: #3a31c7;
$custom-light: #856cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a31c7",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 199
  },
  "hsl": {
    "h": 243.6,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.43818,
    "c": 0.21985,
    "h": 275
  },
  "luminance": 0.0722
}

Semantic roles & 50–950 ramp

primary
#3A31C7
secondary
#CACE86
accent
#E444DA
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3A31C7

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

Preview Lab → · Contrast checker → · Palette generator →

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