#3D31CA#3D31CA

#3D31CA is a dark, highly saturated blue. Relative luminance 0.075; OKLCH L 44.3% C 0.223 H 275.8°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#3D31CA
RGBrgb(61, 49, 202)
HSLhsl(245, 61%, 49%)
HSVhsv(245, 76%, 79%)
CMYKcmyk(69.8%, 75.7%, 0%, 20.8%)
CIE-LABlab(32.81, 51.63, -76.63)
CIE-LCHlch(32.81, 92.40, 303.97°)
OKLaboklab(44.33% 0.0224 -0.2215)
OKLCHoklch(44.33% 0.223 275.8)
XYZxyz(13.6799, 7.4517, 56.5831)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31CA #BECA31
analogous
#3172CA #3D31CA #8A31CA
triadic
#3D31CA #CA3D31 #31CA3D
tetradic
#3D31CA #CA3172 #BECA31 #31CA8A
square
#3D31CA #CA3172 #BECA31 #31CA8A
split-complementary
#3D31CA #CA8A31 #72CA31
monochromatic
#1F1967 #2E2599 #3D31CA #6960D8 #9891E4

Accessibility & contrast

On white

8.43
#3D31CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#3D31CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D31CA
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D31CA#FFFFFF#000000##FFFFFF
##3D31CA1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CE
Deuteranopia (green-blind)
#0046C7
Tritanopia (blue-blind)
#005E7C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3d31ca;
/* rgb */ color: rgb(61, 49, 202);
/* oklch */ color: oklch(44.3% 0.223 275.8);
Tailwind
colors: {
  custom: {
    50: '#876cdc',
    500: '#3d31ca',
    950: '#000000',
  },
}
SCSS
$custom: #3d31ca;
$custom-light: #876cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31ca",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 244.706,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.44326,
    "c": 0.22268,
    "h": 275.8
  },
  "luminance": 0.07453
}

Semantic roles & 50–950 ramp

primary
#3D31CA
secondary
#C9CF88
accent
#E444D7
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3D31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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