#3B277C#3B277C

#3B277C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.1% C 0.137 H 288.1°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#3B277C
RGBrgb(59, 39, 124)
HSLhsl(254, 52%, 32%)
HSVhsv(254, 69%, 49%)
CMYKcmyk(52.4%, 68.5%, 0%, 51.4%)
CIE-LABlab(23.12, 32.28, -45.25)
CIE-LCHlch(23.12, 55.58, 305.51°)
OKLaboklab(35.12% 0.0424 -0.1298)
OKLCHoklch(35.12% 0.137 288.1)
XYZxyz(6.1662, 3.8358, 19.4804)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B277C #687C27
analogous
#273E7C #3B277C #66277C
triadic
#3B277C #7C3B27 #277C3B
tetradic
#3B277C #7C273E #687C27 #277C66
square
#3B277C #7C273E #687C27 #277C66
split-complementary
#3B277C #7C6627 #3E7C27
monochromatic
#0F0A1F #25184D #3B277C #5136AB #7054C9

Accessibility & contrast

On white

11.88
#3B277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3B277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B277C
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B277C#FFFFFF#000000##FFFFFF
##3B277C1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#243C4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3b277c;
/* rgb */ color: rgb(59, 39, 124);
/* oklch */ color: oklch(35.1% 0.137 288.1);
Tailwind
colors: {
  custom: {
    50: '#7862a3',
    500: '#3b277c',
    950: '#000000',
  },
}
SCSS
$custom: #3b277c;
$custom-light: #7862a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3b277c",
  "rgb": {
    "r": 59,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 254.118,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35115,
    "c": 0.13651,
    "h": 288.1
  },
  "luminance": 0.03836
}

Semantic roles & 50–950 ramp

primary
#3B277C
secondary
#98AE51
accent
#DC4CBA
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3B277C

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

Preview Lab → · Contrast checker → · Palette generator →

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