#3B288D#3B288D

#3B288D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.158 H 284.2°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#3B288D
RGBrgb(59, 40, 141)
HSLhsl(251, 56%, 35%)
HSVhsv(251, 72%, 55%)
CMYKcmyk(58.2%, 71.6%, 0%, 44.7%)
CIE-LABlab(24.86, 37.08, -53.07)
CIE-LCHlch(24.86, 64.75, 304.94°)
OKLaboklab(36.83% 0.0386 -0.1527)
OKLCHoklch(36.83% 0.158 284.2)
XYZxyz(7.3687, 4.3700, 25.6494)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B288D #7A8D28
analogous
#28478D #3B288D #6D288D
triadic
#3B288D #8D3B28 #288D3B
tetradic
#3B288D #8D2847 #7A8D28 #288D6D
square
#3B288D #8D2847 #7A8D28 #288D6D
split-complementary
#3B288D #8D6D28 #478D28
monochromatic
#130D2E #271A5D #3B288D #4F36BD #745ED1

Accessibility & contrast

On white

11.21
#3B288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B288D
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B288D#FFFFFF#000000##FFFFFF
##3B288D1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#114357
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3b288d;
/* rgb */ color: rgb(59, 40, 141);
/* oklch */ color: oklch(36.8% 0.158 284.2);
Tailwind
colors: {
  custom: {
    50: '#7a64af',
    500: '#3b288d',
    950: '#000000',
  },
}
SCSS
$custom: #3b288d;
$custom-light: #7a64af;
$custom-dark: #000000;
JSON
{
  "hex": "#3b288d",
  "rgb": {
    "r": 59,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 251.287,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36833,
    "c": 0.15753,
    "h": 284.2
  },
  "luminance": 0.0437
}

Semantic roles & 50–950 ramp

primary
#3B288D
secondary
#A5B75A
accent
#DF49C3
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3B288D

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

Preview Lab → · Contrast checker → · Palette generator →

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