#3D31AE#3D31AE

#3D31AE is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.5% C 0.189 H 278.6°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#3D31AE
RGBrgb(61, 49, 174)
HSLhsl(246, 56%, 44%)
HSVhsv(246, 72%, 68%)
CMYKcmyk(64.9%, 71.8%, 0%, 31.8%)
CIE-LABlab(30.02, 42.77, -64.70)
CIE-LCHlch(30.02, 77.56, 303.46°)
OKLaboklab(41.51% 0.0281 -0.1867)
OKLCHoklch(41.51% 0.189 278.6)
XYZxyz(10.6603, 6.2439, 40.6796)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31AE #A2AE31
analogous
#3163AE #3D31AE #7B31AE
triadic
#3D31AE #AE3D31 #31AE3D
tetradic
#3D31AE #AE3163 #A2AE31 #31AE7B
square
#3D31AE #AE3163 #A2AE31 #31AE7B
split-complementary
#3D31AE #AE7B31 #63AE31
monochromatic
#1C164E #2C247E #3D31AE #5B4FCD #877FDB

Accessibility & contrast

On white

9.34
#3D31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#3D31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D31AE
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D31AE#FFFFFF#000000##FFFFFF
##3D31AE1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB2
Deuteranopia (green-blind)
#0042AC
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3d31ae;
/* rgb */ color: rgb(61, 49, 174);
/* oklch */ color: oklch(41.5% 0.189 278.6);
Tailwind
colors: {
  custom: {
    50: '#816bc7',
    500: '#3d31ae',
    950: '#000000',
  },
}
SCSS
$custom: #3d31ae;
$custom-light: #816bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31ae",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 245.76,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41509,
    "c": 0.18886,
    "h": 278.6
  },
  "luminance": 0.06245
}

Semantic roles & 50–950 ramp

primary
#3D31AE
secondary
#BCC477
accent
#DF48D1
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3D31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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