#3D31C2#3D31C2

#3D31C2 is a dark, highly saturated blue. Relative luminance 0.071; OKLCH L 43.5% C 0.213 H 276.5°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#3D31C2
RGBrgb(61, 49, 194)
HSLhsl(245, 60%, 48%)
HSVhsv(245, 75%, 76%)
CMYKcmyk(68.6%, 74.7%, 0%, 23.9%)
CIE-LABlab(31.99, 49.13, -73.30)
CIE-LCHlch(31.99, 88.25, 303.83°)
OKLaboklab(43.5% 0.0241 -0.2118)
OKLCHoklch(43.5% 0.213 276.5)
XYZxyz(12.7572, 7.0826, 51.7233)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31C2 #B6C231
analogous
#316DC2 #3D31C2 #8631C2
triadic
#3D31C2 #C23D31 #31C23D
tetradic
#3D31C2 #C2316D #B6C231 #31C286
square
#3D31C2 #C2316D #B6C231 #31C286
split-complementary
#3D31C2 #C28631 #6DC231
monochromatic
#1E1860 #2E2591 #3D31C2 #655BD6 #938CE2

Accessibility & contrast

On white

8.69
#3D31C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#3D31C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D31C2
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D31C2#FFFFFF#000000##FFFFFF
##3D31C21.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d31c2;
/* rgb */ color: rgb(61, 49, 194);
/* oklch */ color: oklch(43.5% 0.213 276.5);
Tailwind
colors: {
  custom: {
    50: '#856cd6',
    500: '#3d31c2',
    950: '#000000',
  },
}
SCSS
$custom: #3d31c2;
$custom-light: #856cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31c2",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 244.966,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.43504,
    "c": 0.21322,
    "h": 276.5
  },
  "luminance": 0.07084
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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