#3A31AE#3A31AE

#3A31AE is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.3% C 0.190 H 277.3°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#3A31AE
RGBrgb(58, 49, 174)
HSLhsl(244, 56%, 44%)
HSVhsv(244, 72%, 68%)
CMYKcmyk(66.7%, 71.8%, 0%, 31.8%)
CIE-LABlab(29.79, 42.39, -65.09)
CIE-LCHlch(29.79, 77.67, 303.08°)
OKLaboklab(41.29% 0.0241 -0.188)
OKLCHoklch(41.29% 0.19 277.3)
XYZxyz(10.4807, 6.1513, 40.6712)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A31AE #A5AE31
analogous
#3166AE #3A31AE #7831AE
triadic
#3A31AE #AE3A31 #31AE3A
tetradic
#3A31AE #AE3166 #A5AE31 #31AE78
square
#3A31AE #AE3166 #A5AE31 #31AE78
split-complementary
#3A31AE #AE7831 #66AE31
monochromatic
#1A164E #2A247E #3A31AE #584FCD #857FDB

Accessibility & contrast

On white

9.42
#3A31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#3A31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A31AE
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A31AE#FFFFFF#000000##FFFFFF
##3A31AE1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#0041AC
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3a31ae;
/* rgb */ color: rgb(58, 49, 174);
/* oklch */ color: oklch(41.3% 0.190 277.3);
Tailwind
colors: {
  custom: {
    50: '#806bc7',
    500: '#3a31ae',
    950: '#000000',
  },
}
SCSS
$custom: #3a31ae;
$custom-light: #806bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a31ae",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 244.32,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41288,
    "c": 0.1895,
    "h": 277.3
  },
  "luminance": 0.06152
}

Semantic roles & 50–950 ramp

primary
#3A31AE
secondary
#BEC477
accent
#DF48D4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3A31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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