#3A31CC#3A31CC

#3A31CC is a dark, highly saturated blue. Relative luminance 0.075; OKLCH L 44.3% C 0.226 H 274.6°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#3A31CC
RGBrgb(58, 49, 204)
HSLhsl(243, 61%, 50%)
HSVhsv(243, 76%, 80%)
CMYKcmyk(71.6%, 76%, 0%, 20%)
CIE-LABlab(32.82, 51.97, -77.79)
CIE-LCHlch(32.82, 93.56, 303.75°)
OKLaboklab(44.34% 0.0181 -0.225)
OKLCHoklch(44.34% 0.226 274.6)
XYZxyz(13.7387, 7.4545, 57.8298)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A31CC #C3CC31
analogous
#3176CC #3A31CC #8831CC
triadic
#3A31CC #CC3A31 #31CC3A
tetradic
#3A31CC #CC3176 #C3CC31 #31CC88
square
#3A31CC #CC3176 #C3CC31 #31CC88
split-complementary
#3A31CC #CC8831 #76CC31
monochromatic
#1E1969 #2C259B #3A31CC #6861D9 #9792E5

Accessibility & contrast

On white

8.43
#3A31CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#3A31CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A31CC
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A31CC#FFFFFF#000000##FFFFFF
##3A31CC1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D0
Deuteranopia (green-blind)
#0046C9
Tritanopia (blue-blind)
#005F7D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3a31cc;
/* rgb */ color: rgb(58, 49, 204);
/* oklch */ color: oklch(44.3% 0.226 274.6);
Tailwind
colors: {
  custom: {
    50: '#866cdd',
    500: '#3a31cc',
    950: '#000000',
  },
}
SCSS
$custom: #3a31cc;
$custom-light: #866cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a31cc",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 204
  },
  "hsl": {
    "h": 243.484,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.44339,
    "c": 0.22573,
    "h": 274.6
  },
  "luminance": 0.07456
}

Semantic roles & 50–950 ramp

primary
#3A31CC
secondary
#CCD089
accent
#E443DB
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3A31CC

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

Preview Lab → · Contrast checker → · Palette generator →

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