#3D31C9#3D31C9

#3D31C9 is a dark, highly saturated blue. Relative luminance 0.074; OKLCH L 44.2% C 0.221 H 275.9°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#3D31C9
RGBrgb(61, 49, 201)
HSLhsl(245, 61%, 49%)
HSVhsv(245, 76%, 79%)
CMYKcmyk(69.7%, 75.6%, 0%, 21.2%)
CIE-LABlab(32.71, 51.32, -76.22)
CIE-LCHlch(32.71, 91.88, 303.95°)
OKLaboklab(44.22% 0.0226 -0.2203)
OKLCHoklch(44.22% 0.221 275.9)
XYZxyz(13.5619, 7.4045, 55.9615)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31C9 #BDC931
analogous
#3171C9 #3D31C9 #8931C9
triadic
#3D31C9 #C93D31 #31C93D
tetradic
#3D31C9 #C93171 #BDC931 #31C989
square
#3D31C9 #C93171 #BDC931 #31C989
split-complementary
#3D31C9 #C98931 #71C931
monochromatic
#1F1967 #2E2598 #3D31C9 #695FD8 #9790E4

Accessibility & contrast

On white

8.46
#3D31C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#3D31C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D31C9
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D31C9#FFFFFF#000000##FFFFFF
##3D31C91.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CD
Deuteranopia (green-blind)
#0046C6
Tritanopia (blue-blind)
#005E7B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3d31c9;
/* rgb */ color: rgb(61, 49, 201);
/* oklch */ color: oklch(44.2% 0.221 275.9);
Tailwind
colors: {
  custom: {
    50: '#876cdb',
    500: '#3d31c9',
    950: '#000000',
  },
}
SCSS
$custom: #3d31c9;
$custom-light: #876cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31c9",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 201
  },
  "hsl": {
    "h": 244.737,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.44223,
    "c": 0.22149,
    "h": 275.9
  },
  "luminance": 0.07406
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D31C9

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

Preview Lab → · Contrast checker → · Palette generator →

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