#3D307B#3D307B

#3D307B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 36.8% C 0.122 H 286.7°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#3D307B
RGBrgb(61, 48, 123)
HSLhsl(250, 44%, 34%)
HSVhsv(250, 61%, 48%)
CMYKcmyk(50.4%, 61%, 0%, 51.8%)
CIE-LABlab(25.37, 26.73, -40.95)
CIE-LCHlch(25.37, 48.91, 303.14°)
OKLaboklab(36.78% 0.0352 -0.1171)
OKLCHoklch(36.78% 0.122 286.7)
XYZxyz(6.5555, 4.5358, 19.2651)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D307B #6E7B30
analogous
#30487B #3D307B #62307B
triadic
#3D307B #7B3D30 #307B3D
tetradic
#3D307B #7B3048 #6E7B30 #307B62
square
#3D307B #7B3048 #6E7B30 #307B62
split-complementary
#3D307B #7B6230 #487B30
monochromatic
#110E23 #271F4F #3D307B #5341A7 #7463C2

Accessibility & contrast

On white

11.01
#3D307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3D307B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D307B
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D307B#FFFFFF#000000##FFFFFF
##3D307B1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#284150
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3d307b;
/* rgb */ color: rgb(61, 48, 123);
/* oklch */ color: oklch(36.8% 0.122 286.7);
Tailwind
colors: {
  custom: {
    50: '#7869a2',
    500: '#3d307b',
    950: '#000000',
  },
}
SCSS
$custom: #3d307b;
$custom-light: #7869a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d307b",
  "rgb": {
    "r": 61,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 250.4,
    "s": 43.86,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36776,
    "c": 0.12223,
    "h": 286.7
  },
  "luminance": 0.04536
}

Semantic roles & 50–950 ramp

primary
#3D307B
secondary
#9CA95D
accent
#D454BE
background
#F7F6FA
surface
#EEEBF3
border
#C9C6CD
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #3D307B

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

Preview Lab → · Contrast checker → · Palette generator →

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