#3B277D#3B277D

#3B277D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.2% C 0.138 H 287.8°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#3B277D
RGBrgb(59, 39, 125)
HSLhsl(254, 52%, 32%)
HSVhsv(254, 69%, 49%)
CMYKcmyk(52.8%, 68.8%, 0%, 51%)
CIE-LABlab(23.21, 32.60, -45.74)
CIE-LCHlch(23.21, 56.17, 305.48°)
OKLaboklab(35.2% 0.0422 -0.1312)
OKLCHoklch(35.2% 0.138 287.8)
XYZxyz(6.2297, 3.8612, 19.8151)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B277D #697D27
analogous
#273E7D #3B277D #66277D
triadic
#3B277D #7D3B27 #277D3B
tetradic
#3B277D #7D273E #697D27 #277D66
square
#3B277D #7D273E #697D27 #277D66
split-complementary
#3B277D #7D6627 #3E7D27
monochromatic
#0F0A20 #25184E #3B277D #5136AC #7055CA

Accessibility & contrast

On white

11.85
#3B277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B277D
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B277D#FFFFFF#000000##FFFFFF
##3B277D1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#233C4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3b277d;
/* rgb */ color: rgb(59, 39, 125);
/* oklch */ color: oklch(35.2% 0.138 287.8);
Tailwind
colors: {
  custom: {
    50: '#7862a3',
    500: '#3b277d',
    950: '#000000',
  },
}
SCSS
$custom: #3b277d;
$custom-light: #7862a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3b277d",
  "rgb": {
    "r": 59,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 253.953,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35204,
    "c": 0.13784,
    "h": 287.8
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#3B277D
secondary
#99AF51
accent
#DC4CBA
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3B277D

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

Preview Lab → · Contrast checker → · Palette generator →

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