#3D31C6#3D31C6

#3D31C6 is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 43.9% C 0.218 H 276.1°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#3D31C6
RGBrgb(61, 49, 198)
HSLhsl(245, 60%, 48%)
HSVhsv(245, 75%, 78%)
CMYKcmyk(69.2%, 75.3%, 0%, 22.4%)
CIE-LABlab(32.40, 50.38, -74.98)
CIE-LCHlch(32.40, 90.33, 303.90°)
OKLaboklab(43.91% 0.0232 -0.2167)
OKLCHoklch(43.91% 0.218 276.1)
XYZxyz(13.2125, 7.2647, 54.1211)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31C6 #BAC631
analogous
#316FC6 #3D31C6 #8731C6
triadic
#3D31C6 #C63D31 #31C63D
tetradic
#3D31C6 #C6316F #BAC631 #31C687
square
#3D31C6 #C6316F #BAC631 #31C687
split-complementary
#3D31C6 #C68731 #6FC631
monochromatic
#1F1964 #2E2595 #3D31C6 #675DD7 #958EE3

Accessibility & contrast

On white

8.56
#3D31C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3D31C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D31C6
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D31C6#FFFFFF#000000##FFFFFF
##3D31C61.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CA
Deuteranopia (green-blind)
#0046C3
Tritanopia (blue-blind)
#005D7A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3d31c6;
/* rgb */ color: rgb(61, 49, 198);
/* oklch */ color: oklch(43.9% 0.218 276.1);
Tailwind
colors: {
  custom: {
    50: '#866cd9',
    500: '#3d31c6',
    950: '#000000',
  },
}
SCSS
$custom: #3d31c6;
$custom-light: #866cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31c6",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 198
  },
  "hsl": {
    "h": 244.832,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.43914,
    "c": 0.21796,
    "h": 276.1
  },
  "luminance": 0.07266
}

Semantic roles & 50–950 ramp

primary
#3D31C6
secondary
#C8CE85
accent
#E344D7
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3D31C6

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

Preview Lab → · Contrast checker → · Palette generator →

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