#3A31CE#3A31CE

#3A31CE is a dark, highly saturated blue. Relative luminance 0.076; OKLCH L 44.5% C 0.228 H 274.5°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#3A31CE
RGBrgb(58, 49, 206)
HSLhsl(243, 62%, 50%)
HSVhsv(243, 76%, 81%)
CMYKcmyk(71.8%, 76.2%, 0%, 19.2%)
CIE-LABlab(33.03, 52.60, -78.61)
CIE-LCHlch(33.03, 94.59, 303.79°)
OKLaboklab(44.55% 0.0177 -0.2274)
OKLCHoklch(44.55% 0.228 274.5)
XYZxyz(13.9801, 7.5510, 59.1013)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A31CE #C5CE31
analogous
#3177CE #3A31CE #8831CE
triadic
#3A31CE #CE3A31 #31CE3A
tetradic
#3A31CE #CE3177 #C5CE31 #31CE88
square
#3A31CE #CE3177 #C5CE31 #31CE88
split-complementary
#3A31CE #CE8831 #77CE31
monochromatic
#1E196B #2C259D #3A31CE #6962DA #9994E6

Accessibility & contrast

On white

8.37
#3A31CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#3A31CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A31CE
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A31CE#FFFFFF#000000##FFFFFF
##3A31CE1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055D2
Deuteranopia (green-blind)
#0046CB
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3a31ce;
/* rgb */ color: rgb(58, 49, 206);
/* oklch */ color: oklch(44.5% 0.228 274.5);
Tailwind
colors: {
  custom: {
    50: '#876cde',
    500: '#3a31ce',
    950: '#000000',
  },
}
SCSS
$custom: #3a31ce;
$custom-light: #876cde;
$custom-dark: #000000;
JSON
{
  "hex": "#3a31ce",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 206
  },
  "hsl": {
    "h": 243.439,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.44549,
    "c": 0.22806,
    "h": 274.5
  },
  "luminance": 0.07552
}

Semantic roles & 50–950 ramp

primary
#3A31CE
secondary
#CDD18A
accent
#E543DB
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3A31CE

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

Preview Lab → · Contrast checker → · Palette generator →

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