#3D31C1#3D31C1

#3D31C1 is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 43.4% C 0.212 H 276.6°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#3D31C1
RGBrgb(61, 49, 193)
HSLhsl(245, 60%, 47%)
HSVhsv(245, 75%, 76%)
CMYKcmyk(68.4%, 74.6%, 0%, 24.3%)
CIE-LABlab(31.89, 48.82, -72.88)
CIE-LCHlch(31.89, 87.72, 303.81°)
OKLaboklab(43.4% 0.0243 -0.2106)
OKLCHoklch(43.4% 0.212 276.6)
XYZxyz(12.6453, 7.0378, 51.1338)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31C1 #B5C131
analogous
#316DC1 #3D31C1 #8531C1
triadic
#3D31C1 #C13D31 #31C13D
tetradic
#3D31C1 #C1316D #B5C131 #31C185
square
#3D31C1 #C1316D #B5C131 #31C185
split-complementary
#3D31C1 #C18531 #6DC131
monochromatic
#1E185F #2E2590 #3D31C1 #645AD5 #928BE2

Accessibility & contrast

On white

8.72
#3D31C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3D31C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D31C1
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D31C1#FFFFFF#000000##FFFFFF
##3D31C11.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C5
Deuteranopia (green-blind)
#0045BE
Tritanopia (blue-blind)
#005B77
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3d31c1;
/* rgb */ color: rgb(61, 49, 193);
/* oklch */ color: oklch(43.4% 0.212 276.6);
Tailwind
colors: {
  custom: {
    50: '#856cd5',
    500: '#3d31c1',
    950: '#000000',
  },
}
SCSS
$custom: #3d31c1;
$custom-light: #856cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31c1",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 193
  },
  "hsl": {
    "h": 245,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.43403,
    "c": 0.21203,
    "h": 276.6
  },
  "luminance": 0.07039
}

Semantic roles & 50–950 ramp

primary
#3D31C1
secondary
#C5CC82
accent
#E345D6
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0714
muted
#7D7A83

Preview Lab

Preview with #3D31C1

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

Preview Lab → · Contrast checker → · Palette generator →

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