#3D288A#3D288A

#3D288A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.153 H 285.9°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#3D288A
RGBrgb(61, 40, 138)
HSLhsl(253, 55%, 35%)
HSVhsv(253, 71%, 54%)
CMYKcmyk(55.8%, 71%, 0%, 45.9%)
CIE-LABlab(24.78, 36.47, -51.33)
CIE-LCHlch(24.78, 62.97, 305.39°)
OKLaboklab(36.74% 0.0421 -0.1476)
OKLCHoklch(36.74% 0.153 285.9)
XYZxyz(7.2693, 4.3443, 24.4953)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D288A #758A28
analogous
#28448A #3D288A #6E288A
triadic
#3D288A #8A3D28 #288A3D
tetradic
#3D288A #8A2844 #758A28 #288A6E
square
#3D288A #8A2844 #758A28 #288A6E
split-complementary
#3D288A #8A6E28 #448A28
monochromatic
#130C2B #281A5B #3D288A #5236B9 #755DD0

Accessibility & contrast

On white

11.24
#3D288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3D288A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D288A
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D288A#FFFFFF#000000##FFFFFF
##3D288A1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#1C4156
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3d288a;
/* rgb */ color: rgb(61, 40, 138);
/* oklch */ color: oklch(36.7% 0.153 285.9);
Tailwind
colors: {
  custom: {
    50: '#7b64ad',
    500: '#3d288a',
    950: '#000000',
  },
}
SCSS
$custom: #3d288a;
$custom-light: #7b64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3d288a",
  "rgb": {
    "r": 61,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 252.857,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36738,
    "c": 0.15345,
    "h": 285.9
  },
  "luminance": 0.04345
}

Semantic roles & 50–950 ramp

primary
#3D288A
secondary
#A1B559
accent
#DE49BE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3D288A

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

Preview Lab → · Contrast checker → · Palette generator →

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