#3D287D#3D287D

#3D287D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.6% C 0.136 H 288.9°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#3D287D
RGBrgb(61, 40, 125)
HSLhsl(255, 52%, 32%)
HSVhsv(255, 68%, 49%)
CMYKcmyk(51.2%, 68%, 0%, 51%)
CIE-LABlab(23.64, 32.39, -45.03)
CIE-LCHlch(23.64, 55.47, 305.73°)
OKLaboklab(35.57% 0.0441 -0.1291)
OKLCHoklch(35.57% 0.136 288.9)
XYZxyz(6.3839, 3.9901, 19.8319)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D287D #687D28
analogous
#283D7D #3D287D #68287D
triadic
#3D287D #7D3D28 #287D3D
tetradic
#3D287D #7D283D #687D28 #287D68
square
#3D287D #7D283D #687D28 #287D68
split-complementary
#3D287D #7D6828 #3D7D28
monochromatic
#100A20 #26194F #3D287D #5437AB #7356C9

Accessibility & contrast

On white

11.68
#3D287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3D287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D287D
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D287D#FFFFFF#000000##FFFFFF
##3D287D1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#273D4F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d287d;
/* rgb */ color: rgb(61, 40, 125);
/* oklch */ color: oklch(35.6% 0.136 288.9);
Tailwind
colors: {
  custom: {
    50: '#7963a3',
    500: '#3d287d',
    950: '#000000',
  },
}
SCSS
$custom: #3d287d;
$custom-light: #7963a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d287d",
  "rgb": {
    "r": 61,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 254.824,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35565,
    "c": 0.1364,
    "h": 288.9
  },
  "luminance": 0.0399
}

Semantic roles & 50–950 ramp

primary
#3D287D
secondary
#97AE53
accent
#DB4DB8
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #3D287D

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

Preview Lab → · Contrast checker → · Palette generator →

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