#3D31AB#3D31AB

#3D31AB is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.2% C 0.185 H 278.9°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#3D31AB
RGBrgb(61, 49, 171)
HSLhsl(246, 55%, 43%)
HSVhsv(246, 71%, 67%)
CMYKcmyk(64.3%, 71.3%, 0%, 32.9%)
CIE-LABlab(29.73, 41.80, -63.37)
CIE-LCHlch(29.73, 75.92, 303.41°)
OKLaboklab(41.22% 0.0287 -0.1829)
OKLCHoklch(41.22% 0.185 278.9)
XYZxyz(10.3711, 6.1282, 39.1565)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D31AB #9FAB31
analogous
#3162AB #3D31AB #7A31AB
triadic
#3D31AB #AB3D31 #31AB3D
tetradic
#3D31AB #AB3162 #9FAB31 #31AB7A
square
#3D31AB #AB3162 #9FAB31 #31AB7A
split-complementary
#3D31AB #AB7A31 #62AB31
monochromatic
#1B164C #2C237B #3D31AB #5A4DCC #867DDA

Accessibility & contrast

On white

9.43
#3D31AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D31AB
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D31AB#FFFFFF#000000##FFFFFF
##3D31AB1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0041A9
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3d31ab;
/* rgb */ color: rgb(61, 49, 171);
/* oklch */ color: oklch(41.2% 0.185 278.9);
Tailwind
colors: {
  custom: {
    50: '#806bc5',
    500: '#3d31ab',
    950: '#000000',
  },
}
SCSS
$custom: #3d31ab;
$custom-light: #806bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d31ab",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 245.902,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41219,
    "c": 0.1851,
    "h": 278.9
  },
  "luminance": 0.06129
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D31AB

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

Preview Lab → · Contrast checker → · Palette generator →

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