#3D288F#3D288F

#3D288F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.160 H 284.9°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#3D288F
RGBrgb(61, 40, 143)
HSLhsl(252, 56%, 36%)
HSVhsv(252, 72%, 56%)
CMYKcmyk(57.3%, 72%, 0%, 43.9%)
CIE-LABlab(25.24, 38.04, -53.69)
CIE-LCHlch(25.24, 65.80, 305.32°)
OKLaboklab(37.21% 0.0411 -0.1545)
OKLCHoklch(37.21% 0.16 284.9)
XYZxyz(7.6397, 4.4924, 26.4458)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D288F #7A8F28
analogous
#28468F #3D288F #70288F
triadic
#3D288F #8F3D28 #288F3D
tetradic
#3D288F #8F2846 #7A8F28 #288F70
square
#3D288F #8F2846 #7A8F28 #288F70
split-complementary
#3D288F #8F7028 #468F28
monochromatic
#140D2F #291B5F #3D288F #5135BF #775FD2

Accessibility & contrast

On white

11.06
#3D288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3D288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D288F
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D288F#FFFFFF#000000##FFFFFF
##3D288F1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#164358
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3d288f;
/* rgb */ color: rgb(61, 40, 143);
/* oklch */ color: oklch(37.2% 0.160 284.9);
Tailwind
colors: {
  custom: {
    50: '#7c64b1',
    500: '#3d288f',
    950: '#000000',
  },
}
SCSS
$custom: #3d288f;
$custom-light: #7c64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d288f",
  "rgb": {
    "r": 61,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 252.233,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37206,
    "c": 0.15986,
    "h": 284.9
  },
  "luminance": 0.04493
}

Semantic roles & 50–950 ramp

primary
#3D288F
secondary
#A5B85B
accent
#E048C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #3D288F

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

Preview Lab → · Contrast checker → · Palette generator →

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