#3B277E#3B277E

#3B277E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.3% C 0.139 H 287.6°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#3B277E
RGBrgb(59, 39, 126)
HSLhsl(254, 53%, 32%)
HSVhsv(254, 69%, 49%)
CMYKcmyk(53.2%, 69%, 0%, 50.6%)
CIE-LABlab(23.29, 32.91, -46.23)
CIE-LCHlch(23.29, 56.75, 305.45°)
OKLaboklab(35.29% 0.0421 -0.1327)
OKLCHoklch(35.29% 0.139 287.6)
XYZxyz(6.2939, 3.8869, 20.1532)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B277E #6A7E27
analogous
#273F7E #3B277E #66277E
triadic
#3B277E #7E3B27 #277E3B
tetradic
#3B277E #7E273F #6A7E27 #277E66
square
#3B277E #7E273F #6A7E27 #277E66
split-complementary
#3B277E #7E6627 #3F7E27
monochromatic
#0F0A21 #25194F #3B277E #5135AD #7055CA

Accessibility & contrast

On white

11.82
#3B277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3B277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B277E
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B277E#FFFFFF#000000##FFFFFF
##3B277E1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#223D4F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3b277e;
/* rgb */ color: rgb(59, 39, 126);
/* oklch */ color: oklch(35.3% 0.139 287.6);
Tailwind
colors: {
  custom: {
    50: '#7862a4',
    500: '#3b277e',
    950: '#000000',
  },
}
SCSS
$custom: #3b277e;
$custom-light: #7862a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3b277e",
  "rgb": {
    "r": 59,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 253.793,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35293,
    "c": 0.13917,
    "h": 287.6
  },
  "luminance": 0.03887
}

Semantic roles & 50–950 ramp

primary
#3B277E
secondary
#9AAF52
accent
#DC4CBB
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3B277E

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

Preview Lab → · Contrast checker → · Palette generator →

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