#3D31C5#3D31C5

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

Color values

HEX#3D31C5
RGBrgb(61, 49, 197)
HSLhsl(245, 60%, 48%)
HSVhsv(245, 75%, 77%)
CMYKcmyk(69%, 75.1%, 0%, 22.7%)
CIE-LABlab(32.30, 50.07, -74.56)
CIE-LCHlch(32.30, 89.81, 303.88°)
OKLaboklab(43.81% 0.0235 -0.2155)
OKLCHoklch(43.81% 0.217 276.2)
XYZxyz(13.0975, 7.2187, 53.5156)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31C5 #B9C531
analogous
#316FC5 #3D31C5 #8731C5
triadic
#3D31C5 #C53D31 #31C53D
tetradic
#3D31C5 #C5316F #B9C531 #31C587
square
#3D31C5 #C5316F #B9C531 #31C587
split-complementary
#3D31C5 #C58731 #6FC531
monochromatic
#1F1963 #2E2594 #3D31C5 #665DD7 #958EE3

Accessibility & contrast

On white

8.59
#3D31C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#3D31C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D31C5
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D31C5#FFFFFF#000000##FFFFFF
##3D31C51.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.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: #3d31c5;
/* rgb */ color: rgb(61, 49, 197);
/* oklch */ color: oklch(43.8% 0.217 276.2);
Tailwind
colors: {
  custom: {
    50: '#866cd8',
    500: '#3d31c5',
    950: '#000000',
  },
}
SCSS
$custom: #3d31c5;
$custom-light: #866cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31c5",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 244.865,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.43811,
    "c": 0.21678,
    "h": 276.2
  },
  "luminance": 0.0722
}

Semantic roles & 50–950 ramp

primary
#3D31C5
secondary
#C7CD85
accent
#E344D6
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3D31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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