#3D287A#3D287A

#3D287A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.3% C 0.132 H 289.6°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#3D287A
RGBrgb(61, 40, 122)
HSLhsl(255, 51%, 32%)
HSVhsv(255, 67%, 48%)
CMYKcmyk(50%, 67.2%, 0%, 52.2%)
CIE-LABlab(23.39, 31.45, -43.53)
CIE-LCHlch(23.39, 53.71, 305.84°)
OKLaboklab(35.3% 0.0445 -0.1247)
OKLCHoklch(35.3% 0.132 289.6)
XYZxyz(6.1951, 3.9146, 18.8377)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D287A #657A28
analogous
#283C7A #3D287A #66287A
triadic
#3D287A #7A3D28 #287A3D
tetradic
#3D287A #7A283C #657A28 #287A66
square
#3D287A #7A283C #657A28 #287A66
split-complementary
#3D287A #7A6628 #3C7A28
monochromatic
#0F0A1E #26194C #3D287A #5437A8 #7255C7

Accessibility & contrast

On white

11.78
#3D287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3D287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D287A
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D287A#FFFFFF#000000##FFFFFF
##3D287A1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#293C4D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d287a;
/* rgb */ color: rgb(61, 40, 122);
/* oklch */ color: oklch(35.3% 0.132 289.6);
Tailwind
colors: {
  custom: {
    50: '#7863a1',
    500: '#3d287a',
    950: '#000000',
  },
}
SCSS
$custom: #3d287a;
$custom-light: #7863a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d287a",
  "rgb": {
    "r": 61,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 255.366,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35304,
    "c": 0.13238,
    "h": 289.6
  },
  "luminance": 0.03915
}

Semantic roles & 50–950 ramp

primary
#3D287A
secondary
#95AC52
accent
#DA4EB6
background
#F7F6FA
surface
#EEEBF3
border
#C9C6CD
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #3D287A

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

Preview Lab → · Contrast checker → · Palette generator →

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