#3D307E#3D307E

#3D307E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.0% C 0.126 H 286.1°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#3D307E
RGBrgb(61, 48, 126)
HSLhsl(250, 45%, 34%)
HSVhsv(250, 62%, 49%)
CMYKcmyk(51.6%, 61.9%, 0%, 50.6%)
CIE-LABlab(25.60, 27.71, -42.47)
CIE-LCHlch(25.60, 50.71, 303.12°)
OKLaboklab(37.02% 0.0351 -0.1215)
OKLCHoklch(37.02% 0.126 286.1)
XYZxyz(6.7462, 4.6120, 20.2694)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D307E #717E30
analogous
#304A7E #3D307E #64307E
triadic
#3D307E #7E3D30 #307E3D
tetradic
#3D307E #7E304A #717E30 #307E64
square
#3D307E #7E304A #717E30 #307E64
split-complementary
#3D307E #7E6430 #4A7E30
monochromatic
#120E25 #281F52 #3D307E #5241AA #7464C4

Accessibility & contrast

On white

10.92
#3D307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3D307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D307E
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D307E#FFFFFF#000000##FFFFFF
##3D307E1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#264252
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3d307e;
/* rgb */ color: rgb(61, 48, 126);
/* oklch */ color: oklch(37.0% 0.126 286.1);
Tailwind
colors: {
  custom: {
    50: '#7869a4',
    500: '#3d307e',
    950: '#000000',
  },
}
SCSS
$custom: #3d307e;
$custom-light: #7869a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d307e",
  "rgb": {
    "r": 61,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 250,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37018,
    "c": 0.12649,
    "h": 286.1
  },
  "luminance": 0.04612
}

Semantic roles & 50–950 ramp

primary
#3D307E
secondary
#9EAB5F
accent
#D553BF
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #3D307E

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

Preview Lab → · Contrast checker → · Palette generator →

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