#3B288A#3B288A

#3B288A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.5% C 0.154 H 284.7°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#3B288A
RGBrgb(59, 40, 138)
HSLhsl(252, 55%, 35%)
HSVhsv(252, 71%, 54%)
CMYKcmyk(57.2%, 71%, 0%, 45.9%)
CIE-LABlab(24.58, 36.13, -51.66)
CIE-LCHlch(24.58, 63.04, 304.97°)
OKLaboklab(36.55% 0.0391 -0.1486)
OKLCHoklch(36.55% 0.154 284.7)
XYZxyz(7.1485, 4.2820, 24.4896)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B288A #778A28
analogous
#28468A #3B288A #6C288A
triadic
#3B288A #8A3B28 #288A3B
tetradic
#3B288A #8A2846 #778A28 #288A6C
square
#3B288A #8A2846 #778A28 #288A6C
split-complementary
#3B288A #8A6C28 #468A28
monochromatic
#120C2B #271A5B #3B288A #4F36B9 #735DD0

Accessibility & contrast

On white

11.31
#3B288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3B288A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B288A
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B288A#FFFFFF#000000##FFFFFF
##3B288A1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#164256
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3b288a;
/* rgb */ color: rgb(59, 40, 138);
/* oklch */ color: oklch(36.5% 0.154 284.7);
Tailwind
colors: {
  custom: {
    50: '#7a64ad',
    500: '#3b288a',
    950: '#000000',
  },
}
SCSS
$custom: #3b288a;
$custom-light: #7a64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3b288a",
  "rgb": {
    "r": 59,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 251.633,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3655,
    "c": 0.15366,
    "h": 284.7
  },
  "luminance": 0.04282
}

Semantic roles & 50–950 ramp

primary
#3B288A
secondary
#A3B559
accent
#DE49C2
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3B288A

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

Preview Lab → · Contrast checker → · Palette generator →

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