#3D318D#3D318D

#3D318D is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.146 H 283.0°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#3D318D
RGBrgb(61, 49, 141)
HSLhsl(248, 48%, 37%)
HSVhsv(248, 65%, 55%)
CMYKcmyk(56.7%, 65.2%, 0%, 44.7%)
CIE-LABlab(27.05, 31.99, -49.49)
CIE-LCHlch(27.05, 58.93, 302.88°)
OKLaboklab(38.46% 0.0329 -0.1421)
OKLCHoklch(38.46% 0.146 283)
XYZxyz(7.8290, 5.1113, 25.7682)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D318D #818D31
analogous
#31538D #3D318D #6B318D
triadic
#3D318D #8D3D31 #318D3D
tetradic
#3D318D #8D3153 #818D31 #318D6B
square
#3D318D #8D3153 #818D31 #318D6B
split-complementary
#3D318D #8D6B31 #538D31
monochromatic
#161132 #292160 #3D318D #5141BA #796CCC

Accessibility & contrast

On white

10.38
#3D318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3D318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D318D
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D318D#FFFFFF#000000##FFFFFF
##3D318D1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#17485A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3d318d;
/* rgb */ color: rgb(61, 49, 141);
/* oklch */ color: oklch(38.5% 0.146 283.0);
Tailwind
colors: {
  custom: {
    50: '#7b6aaf',
    500: '#3d318d',
    950: '#000000',
  },
}
SCSS
$custom: #3d318d;
$custom-light: #7b6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d318d",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 247.826,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38458,
    "c": 0.14591,
    "h": 283
  },
  "luminance": 0.05112
}

Semantic roles & 50–950 ramp

primary
#3D318D
secondary
#A9B466
accent
#D850C6
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3D318D

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

Preview Lab → · Contrast checker → · Palette generator →

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