#3D31BB#3D31BB

#3D31BB is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 42.8% C 0.205 H 277.2°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#3D31BB
RGBrgb(61, 49, 187)
HSLhsl(245, 58%, 46%)
HSVhsv(245, 74%, 73%)
CMYKcmyk(67.4%, 73.8%, 0%, 26.7%)
CIE-LABlab(31.29, 46.92, -70.34)
CIE-LCHlch(31.29, 84.55, 303.71°)
OKLaboklab(42.8% 0.0256 -0.2032)
OKLCHoklch(42.8% 0.205 277.2)
XYZxyz(11.9895, 6.7755, 47.6800)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31BB #AFBB31
analogous
#316ABB #3D31BB #8231BB
triadic
#3D31BB #BB3D31 #31BB3D
tetradic
#3D31BB #BB316A #AFBB31 #31BB82
square
#3D31BB #BB316A #AFBB31 #31BB82
split-complementary
#3D31BB #BB8231 #6ABB31
monochromatic
#1D185A #2D248B #3D31BB #6156D3 #8F87E0

Accessibility & contrast

On white

8.92
#3D31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#3D31BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D31BB
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D31BB#FFFFFF#000000##FFFFFF
##3D31BB1.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBF
Deuteranopia (green-blind)
#0044B9
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3d31bb;
/* rgb */ color: rgb(61, 49, 187);
/* oklch */ color: oklch(42.8% 0.205 277.2);
Tailwind
colors: {
  custom: {
    50: '#846bd1',
    500: '#3d31bb',
    950: '#000000',
  },
}
SCSS
$custom: #3d31bb;
$custom-light: #846bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31bb",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 245.217,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.42796,
    "c": 0.20481,
    "h": 277.2
  },
  "luminance": 0.06777
}

Semantic roles & 50–950 ramp

primary
#3D31BB
secondary
#C3C97F
accent
#E246D4
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3D31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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