#3B31AC#3B31AC

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

Color values

HEX#3B31AC
RGBrgb(59, 49, 172)
HSLhsl(245, 56%, 43%)
HSVhsv(245, 72%, 67%)
CMYKcmyk(65.7%, 71.5%, 0%, 32.5%)
CIE-LABlab(29.67, 41.86, -64.08)
CIE-LCHlch(29.67, 76.54, 303.16°)
OKLaboklab(41.17% 0.0258 -0.185)
OKLCHoklch(41.17% 0.187 277.9)
XYZxyz(10.3459, 6.1041, 39.6547)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B31AC #A2AC31
analogous
#3164AC #3B31AC #7831AC
triadic
#3B31AC #AC3B31 #31AC3B
tetradic
#3B31AC #AC3164 #A2AC31 #31AC78
square
#3B31AC #AC3164 #A2AC31 #31AC78
split-complementary
#3B31AC #AC7831 #64AC31
monochromatic
#1A164D #2B237C #3B31AC #584ECC #857DDA

Accessibility & contrast

On white

9.46
#3B31AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B31AC
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B31AC#FFFFFF#000000##FFFFFF
##3B31AC1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.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: #3b31ac;
/* rgb */ color: rgb(59, 49, 172);
/* oklch */ color: oklch(41.2% 0.187 277.9);
Tailwind
colors: {
  custom: {
    50: '#806bc6',
    500: '#3b31ac',
    950: '#000000',
  },
}
SCSS
$custom: #3b31ac;
$custom-light: #806bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#3b31ac",
  "rgb": {
    "r": 59,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 244.878,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41165,
    "c": 0.18677,
    "h": 277.9
  },
  "luminance": 0.06105
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3B31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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