#3D3886#3D3886

#3D3886 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.1% C 0.126 H 281.7°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#3D3886
RGBrgb(61, 56, 134)
HSLhsl(244, 41%, 37%)
HSVhsv(244, 58%, 53%)
CMYKcmyk(54.5%, 58.2%, 0%, 47.5%)
CIE-LABlab(28.22, 25.17, -43.24)
CIE-LCHlch(28.22, 50.03, 300.20°)
OKLaboklab(39.15% 0.0257 -0.1237)
OKLCHoklch(39.15% 0.126 281.7)
XYZxyz(7.6404, 5.5412, 23.2166)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D3886 #818638
analogous
#385A86 #3D3886 #643886
triadic
#3D3886 #863D38 #38863D
tetradic
#3D3886 #86385A #818638 #388664
square
#3D3886 #86385A #818638 #388664
split-complementary
#3D3886 #866438 #5A8638
monochromatic
#161430 #29265B #3D3886 #514AB1 #7974C5

Accessibility & contrast

On white

9.96
#3D3886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#3D3886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D3886
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D3886#FFFFFF#000000##FFFFFF
##3D38861.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#1E4A59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3d3886;
/* rgb */ color: rgb(61, 56, 134);
/* oklch */ color: oklch(39.1% 0.126 281.7);
Tailwind
colors: {
  custom: {
    50: '#796eaa',
    500: '#3d3886',
    950: '#000000',
  },
}
SCSS
$custom: #3d3886;
$custom-light: #796eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#3d3886",
  "rgb": {
    "r": 61,
    "g": 56,
    "b": 134
  },
  "hsl": {
    "h": 243.846,
    "s": 41.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39147,
    "c": 0.12638,
    "h": 281.7
  },
  "luminance": 0.05542
}

Semantic roles & 50–950 ramp

primary
#3D3886
secondary
#A9AE6C
accent
#D157C9
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #3D3886

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

Preview Lab → · Contrast checker → · Palette generator →

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