#3D31AC#3D31AC

#3D31AC is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.3% C 0.186 H 278.8°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#3D31AC
RGBrgb(61, 49, 172)
HSLhsl(246, 56%, 43%)
HSVhsv(246, 72%, 67%)
CMYKcmyk(64.5%, 71.5%, 0%, 32.5%)
CIE-LABlab(29.83, 42.12, -63.82)
CIE-LCHlch(29.83, 76.47, 303.43°)
OKLaboklab(41.32% 0.0285 -0.1842)
OKLCHoklch(41.32% 0.186 278.8)
XYZxyz(10.4668, 6.1664, 39.6604)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31AC #A0AC31
analogous
#3162AC #3D31AC #7A31AC
triadic
#3D31AC #AC3D31 #31AC3D
tetradic
#3D31AC #AC3162 #A0AC31 #31AC7A
square
#3D31AC #AC3162 #A0AC31 #31AC7A
split-complementary
#3D31AC #AC7A31 #62AC31
monochromatic
#1B164D #2C237C #3D31AC #5A4ECC #867DDA

Accessibility & contrast

On white

9.40
#3D31AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#3D31AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D31AC
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D31AC#FFFFFF#000000##FFFFFF
##3D31AC1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0041AA
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3d31ac;
/* rgb */ color: rgb(61, 49, 172);
/* oklch */ color: oklch(41.3% 0.186 278.8);
Tailwind
colors: {
  custom: {
    50: '#816bc6',
    500: '#3d31ac',
    950: '#000000',
  },
}
SCSS
$custom: #3d31ac;
$custom-light: #816bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31ac",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 245.854,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41315,
    "c": 0.18636,
    "h": 278.8
  },
  "luminance": 0.06167
}

Semantic roles & 50–950 ramp

primary
#3D31AC
secondary
#BBC376
accent
#DF49D0
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3D31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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