#3B31C5#3B31C5

#3B31C5 is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 43.7% C 0.217 H 275.5°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#3B31C5
RGBrgb(59, 49, 197)
HSLhsl(244, 60%, 48%)
HSVhsv(244, 75%, 77%)
CMYKcmyk(70.1%, 75.1%, 0%, 22.7%)
CIE-LABlab(32.16, 49.87, -74.79)
CIE-LCHlch(32.16, 89.90, 303.70°)
OKLaboklab(43.68% 0.0209 -0.2162)
OKLCHoklch(43.68% 0.217 275.5)
XYZxyz(12.9767, 7.1564, 53.5100)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B31C5 #BBC531
analogous
#3171C5 #3B31C5 #8531C5
triadic
#3B31C5 #C53B31 #31C53B
tetradic
#3B31C5 #C53171 #BBC531 #31C585
square
#3B31C5 #C53171 #BBC531 #31C585
split-complementary
#3B31C5 #C58531 #71C531
monochromatic
#1E1963 #2C2594 #3B31C5 #655DD7 #938EE3

Accessibility & contrast

On white

8.64
#3B31C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3B31C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B31C5
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B31C5#FFFFFF#000000##FFFFFF
##3B31C51.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C9
Deuteranopia (green-blind)
#0045C2
Tritanopia (blue-blind)
#005C79
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3b31c5;
/* rgb */ color: rgb(59, 49, 197);
/* oklch */ color: oklch(43.7% 0.217 275.5);
Tailwind
colors: {
  custom: {
    50: '#856cd8',
    500: '#3b31c5',
    950: '#000000',
  },
}
SCSS
$custom: #3b31c5;
$custom-light: #856cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#3b31c5",
  "rgb": {
    "r": 59,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 244.054,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.43677,
    "c": 0.21725,
    "h": 275.5
  },
  "luminance": 0.07158
}

Semantic roles & 50–950 ramp

primary
#3B31C5
secondary
#C8CD85
accent
#E344D9
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3B31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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