#3D31BC#3D31BC

#3D31BC is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 42.9% C 0.206 H 277.1°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#3D31BC
RGBrgb(61, 49, 188)
HSLhsl(245, 59%, 46%)
HSVhsv(245, 74%, 74%)
CMYKcmyk(67.6%, 73.9%, 0%, 26.3%)
CIE-LABlab(31.39, 47.24, -70.77)
CIE-LCHlch(31.39, 85.09, 303.72°)
OKLaboklab(42.9% 0.0254 -0.2045)
OKLCHoklch(42.9% 0.206 277.1)
XYZxyz(12.0969, 6.8185, 48.2458)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31BC #B0BC31
analogous
#316BBC #3D31BC #8331BC
triadic
#3D31BC #BC3D31 #31BC3D
tetradic
#3D31BC #BC316B #B0BC31 #31BC83
square
#3D31BC #BC316B #B0BC31 #31BC83
split-complementary
#3D31BC #BC8331 #6BBC31
monochromatic
#1D185B #2D248B #3D31BC #6257D3 #8F88E0

Accessibility & contrast

On white

8.88
#3D31BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D31BC
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D31BC#FFFFFF#000000##FFFFFF
##3D31BC1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C0
Deuteranopia (green-blind)
#0044B9
Tritanopia (blue-blind)
#005974
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3d31bc;
/* rgb */ color: rgb(61, 49, 188);
/* oklch */ color: oklch(42.9% 0.206 277.1);
Tailwind
colors: {
  custom: {
    50: '#846bd1',
    500: '#3d31bc',
    950: '#000000',
  },
}
SCSS
$custom: #3d31bc;
$custom-light: #846bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31bc",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 245.18,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.42897,
    "c": 0.20603,
    "h": 277.1
  },
  "luminance": 0.0682
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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