#3D319B#3D319B

#3D319B is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.7% C 0.165 H 280.9°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#3D319B
RGBrgb(61, 49, 155)
HSLhsl(247, 52%, 40%)
HSVhsv(247, 68%, 61%)
CMYKcmyk(60.6%, 68.4%, 0%, 39.2%)
CIE-LABlab(28.26, 36.59, -56.11)
CIE-LCHlch(28.26, 66.99, 303.11°)
OKLaboklab(39.71% 0.0313 -0.1616)
OKLCHoklch(39.71% 0.165 280.9)
XYZxyz(8.9373, 5.5547, 31.6052)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D319B #8F9B31
analogous
#315A9B #3D319B #72319B
triadic
#3D319B #9B3D31 #319B3D
tetradic
#3D319B #9B315A #8F9B31 #319B72
square
#3D319B #9B315A #8F9B31 #319B72
split-complementary
#3D319B #9B7231 #5A9B31
monochromatic
#18143E #2B226D #3D319B #5345C4 #7E73D3

Accessibility & contrast

On white

9.95
#3D319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D319B
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D319B#FFFFFF#000000##FFFFFF
##3D319B1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3d319b;
/* rgb */ color: rgb(61, 49, 155);
/* oklch */ color: oklch(39.7% 0.165 280.9);
Tailwind
colors: {
  custom: {
    50: '#7d6ab9',
    500: '#3d319b',
    950: '#000000',
  },
}
SCSS
$custom: #3d319b;
$custom-light: #7d6ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#3d319b",
  "rgb": {
    "r": 61,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 246.792,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.3971,
    "c": 0.1646,
    "h": 280.9
  },
  "luminance": 0.05555
}

Semantic roles & 50–950 ramp

primary
#3D319B
secondary
#B2BB6D
accent
#DB4CCB
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3D319B

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

Preview Lab → · Contrast checker → · Palette generator →

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