#3A31AC#3A31AC

#3A31AC is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.1% C 0.187 H 277.5°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#3A31AC
RGBrgb(58, 49, 172)
HSLhsl(244, 56%, 43%)
HSVhsv(244, 72%, 67%)
CMYKcmyk(66.3%, 71.5%, 0%, 32.5%)
CIE-LABlab(29.60, 41.74, -64.21)
CIE-LCHlch(29.60, 76.58, 303.03°)
OKLaboklab(41.09% 0.0245 -0.1854)
OKLCHoklch(41.09% 0.187 277.5)
XYZxyz(10.2872, 6.0739, 39.6520)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A31AC #A3AC31
analogous
#3165AC #3A31AC #7731AC
triadic
#3A31AC #AC3A31 #31AC3A
tetradic
#3A31AC #AC3165 #A3AC31 #31AC77
square
#3A31AC #AC3165 #A3AC31 #31AC77
split-complementary
#3A31AC #AC7731 #65AC31
monochromatic
#1A164D #2A237C #3A31AC #574ECC #847DDA

Accessibility & contrast

On white

9.48
#3A31AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#3A31AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A31AC
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A31AC#FFFFFF#000000##FFFFFF
##3A31AC1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0041AA
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3a31ac;
/* rgb */ color: rgb(58, 49, 172);
/* oklch */ color: oklch(41.1% 0.187 277.5);
Tailwind
colors: {
  custom: {
    50: '#7f6bc6',
    500: '#3a31ac',
    950: '#000000',
  },
}
SCSS
$custom: #3a31ac;
$custom-light: #7f6bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a31ac",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 244.39,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41092,
    "c": 0.18699,
    "h": 277.5
  },
  "luminance": 0.06075
}

Semantic roles & 50–950 ramp

primary
#3A31AC
secondary
#BDC376
accent
#DF49D4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3A31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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