#3D31BF#3D31BF

#3D31BF is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 43.2% C 0.210 H 276.8°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#3D31BF
RGBrgb(61, 49, 191)
HSLhsl(245, 59%, 47%)
HSVhsv(245, 74%, 75%)
CMYKcmyk(68.1%, 74.3%, 0%, 25.1%)
CIE-LABlab(31.69, 48.19, -72.04)
CIE-LCHlch(31.69, 86.67, 303.78°)
OKLaboklab(43.2% 0.0247 -0.2082)
OKLCHoklch(43.2% 0.21 276.8)
XYZxyz(12.4237, 6.9492, 49.9667)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31BF #B3BF31
analogous
#316CBF #3D31BF #8431BF
triadic
#3D31BF #BF3D31 #31BF3D
tetradic
#3D31BF #BF316C #B3BF31 #31BF84
square
#3D31BF #BF316C #B3BF31 #31BF84
split-complementary
#3D31BF #BF8431 #6CBF31
monochromatic
#1E185E #2D258E #3D31BF #6359D4 #918AE1

Accessibility & contrast

On white

8.79
#3D31BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#3D31BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D31BF
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D31BF#FFFFFF#000000##FFFFFF
##3D31BF1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C3
Deuteranopia (green-blind)
#0044BC
Tritanopia (blue-blind)
#005A76
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3d31bf;
/* rgb */ color: rgb(61, 49, 191);
/* oklch */ color: oklch(43.2% 0.210 276.8);
Tailwind
colors: {
  custom: {
    50: '#856cd4',
    500: '#3d31bf',
    950: '#000000',
  },
}
SCSS
$custom: #3d31bf;
$custom-light: #856cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31bf",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 245.07,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.432,
    "c": 0.20963,
    "h": 276.8
  },
  "luminance": 0.0695
}

Semantic roles & 50–950 ramp

primary
#3D31BF
secondary
#C5CB81
accent
#E245D5
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3D31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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