#3B277A#3B277A

#3B277A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 34.9% C 0.134 H 288.6°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#3B277A
RGBrgb(59, 39, 122)
HSLhsl(254, 52%, 32%)
HSVhsv(254, 68%, 48%)
CMYKcmyk(51.6%, 68%, 0%, 52.2%)
CIE-LABlab(22.95, 31.65, -44.25)
CIE-LCHlch(22.95, 54.41, 305.57°)
OKLaboklab(34.94% 0.0426 -0.1269)
OKLCHoklch(34.94% 0.134 288.6)
XYZxyz(6.0410, 3.7857, 18.8210)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B277A #667A27
analogous
#273D7A #3B277A #65277A
triadic
#3B277A #7A3B27 #277A3B
tetradic
#3B277A #7A273D #667A27 #277A65
square
#3B277A #7A273D #667A27 #277A65
split-complementary
#3B277A #7A6527 #3D7A27
monochromatic
#0E091D #25184C #3B277A #5136A8 #6F53C8

Accessibility & contrast

On white

11.95
#3B277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3B277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B277A
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B277A#FFFFFF#000000##FFFFFF
##3B277A1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#253B4D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3b277a;
/* rgb */ color: rgb(59, 39, 122);
/* oklch */ color: oklch(34.9% 0.134 288.6);
Tailwind
colors: {
  custom: {
    50: '#7762a1',
    500: '#3b277a',
    950: '#000000',
  },
}
SCSS
$custom: #3b277a;
$custom-light: #7762a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b277a",
  "rgb": {
    "r": 59,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 254.458,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34938,
    "c": 0.13383,
    "h": 288.6
  },
  "luminance": 0.03786
}

Semantic roles & 50–950 ramp

primary
#3B277A
secondary
#96AC51
accent
#DB4DB9
background
#F7F5FA
surface
#EEEAF3
border
#C9C6CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3B277A

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

Preview Lab → · Contrast checker → · Palette generator →

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