#3D31C3#3D31C3

#3D31C3 is a dark, highly saturated blue. Relative luminance 0.071; OKLCH L 43.6% C 0.214 H 276.4°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#3D31C3
RGBrgb(61, 49, 195)
HSLhsl(245, 60%, 48%)
HSVhsv(245, 75%, 76%)
CMYKcmyk(68.7%, 74.9%, 0%, 23.5%)
CIE-LABlab(32.10, 49.44, -73.72)
CIE-LCHlch(32.10, 88.77, 303.85°)
OKLaboklab(43.61% 0.0239 -0.2131)
OKLCHoklch(43.61% 0.214 276.4)
XYZxyz(12.8699, 7.1277, 52.3167)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31C3 #B7C331
analogous
#316EC3 #3D31C3 #8631C3
triadic
#3D31C3 #C33D31 #31C33D
tetradic
#3D31C3 #C3316E #B7C331 #31C386
square
#3D31C3 #C3316E #B7C331 #31C386
split-complementary
#3D31C3 #C38631 #6EC331
monochromatic
#1E1861 #2E2592 #3D31C3 #655BD6 #938CE2

Accessibility & contrast

On white

8.66
#3D31C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D31C3
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D31C3#FFFFFF#000000##FFFFFF
##3D31C31.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C7
Deuteranopia (green-blind)
#0045C0
Tritanopia (blue-blind)
#005B78
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3d31c3;
/* rgb */ color: rgb(61, 49, 195);
/* oklch */ color: oklch(43.6% 0.214 276.4);
Tailwind
colors: {
  custom: {
    50: '#856cd6',
    500: '#3d31c3',
    950: '#000000',
  },
}
SCSS
$custom: #3d31c3;
$custom-light: #856cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31c3",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 195
  },
  "hsl": {
    "h": 244.932,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.43607,
    "c": 0.21441,
    "h": 276.4
  },
  "luminance": 0.07129
}

Semantic roles & 50–950 ramp

primary
#3D31C3
secondary
#C6CC83
accent
#E345D6
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3D31C3

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

Preview Lab → · Contrast checker → · Palette generator →

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