#3D287F#3D287F

#3D287F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.7% C 0.139 H 288.4°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#3D287F
RGBrgb(61, 40, 127)
HSLhsl(254, 52%, 33%)
HSVhsv(254, 69%, 50%)
CMYKcmyk(52%, 68.5%, 0%, 50.2%)
CIE-LABlab(23.81, 33.01, -46.01)
CIE-LCHlch(23.81, 56.63, 305.66°)
OKLaboklab(35.74% 0.0439 -0.132)
OKLCHoklch(35.74% 0.139 288.4)
XYZxyz(6.5129, 4.0417, 20.5115)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D287F #6A7F28
analogous
#283E7F #3D287F #69287F
triadic
#3D287F #7F3D28 #287F3D
tetradic
#3D287F #7F283E #6A7F28 #287F69
square
#3D287F #7F283E #6A7F28 #287F69
split-complementary
#3D287F #7F6928 #3E7F28
monochromatic
#100B22 #271950 #3D287F #5337AE #7357CA

Accessibility & contrast

On white

11.61
#3D287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3D287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D287F
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D287F#FFFFFF#000000##FFFFFF
##3D287F1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#263E50
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d287f;
/* rgb */ color: rgb(61, 40, 127);
/* oklch */ color: oklch(35.7% 0.139 288.4);
Tailwind
colors: {
  custom: {
    50: '#7963a5',
    500: '#3d287f',
    950: '#000000',
  },
}
SCSS
$custom: #3d287f;
$custom-light: #7963a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d287f",
  "rgb": {
    "r": 61,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 254.483,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35741,
    "c": 0.13906,
    "h": 288.4
  },
  "luminance": 0.04042
}

Semantic roles & 50–950 ramp

primary
#3D287F
secondary
#99AF54
accent
#DC4CB9
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #3D287F

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

Preview Lab → · Contrast checker → · Palette generator →

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