#3B277B#3B277B

#3B277B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.0% C 0.135 H 288.3°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#3B277B
RGBrgb(59, 39, 123)
HSLhsl(254, 52%, 32%)
HSVhsv(254, 68%, 48%)
CMYKcmyk(52%, 68.3%, 0%, 51.8%)
CIE-LABlab(23.04, 31.97, -44.75)
CIE-LCHlch(23.04, 55.00, 305.54°)
OKLaboklab(35.03% 0.0425 -0.1283)
OKLCHoklch(35.03% 0.135 288.3)
XYZxyz(6.1033, 3.8106, 19.1490)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B277B #677B27
analogous
#273D7B #3B277B #65277B
triadic
#3B277B #7B3B27 #277B3B
tetradic
#3B277B #7B273D #677B27 #277B65
square
#3B277B #7B273D #677B27 #277B65
split-complementary
#3B277B #7B6527 #3D7B27
monochromatic
#0E0A1E #25184D #3B277B #5136A9 #7054C9

Accessibility & contrast

On white

11.92
#3B277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B277B
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B277B#FFFFFF#000000##FFFFFF
##3B277B1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#243C4D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3b277b;
/* rgb */ color: rgb(59, 39, 123);
/* oklch */ color: oklch(35.0% 0.135 288.3);
Tailwind
colors: {
  custom: {
    50: '#7762a2',
    500: '#3b277b',
    950: '#000000',
  },
}
SCSS
$custom: #3b277b;
$custom-light: #7762a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3b277b",
  "rgb": {
    "r": 59,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 254.286,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35026,
    "c": 0.13517,
    "h": 288.3
  },
  "luminance": 0.03811
}

Semantic roles & 50–950 ramp

primary
#3B277B
secondary
#97AD51
accent
#DB4CB9
background
#F7F5FA
surface
#EEEAF3
border
#C9C6CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3B277B

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

Preview Lab → · Contrast checker → · Palette generator →

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