#3F277C#3F277C

#3F277C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.5% C 0.136 H 290.8°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#3F277C
RGBrgb(63, 39, 124)
HSLhsl(257, 52%, 32%)
HSVhsv(257, 69%, 49%)
CMYKcmyk(49.2%, 68.5%, 0%, 51.4%)
CIE-LABlab(23.55, 33.08, -44.53)
CIE-LCHlch(23.55, 55.48, 306.61°)
OKLaboklab(35.52% 0.0484 -0.1275)
OKLCHoklch(35.52% 0.136 290.8)
XYZxyz(6.4125, 3.9628, 19.4919)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F277C #647C27
analogous
#273A7C #3F277C #6A277C
triadic
#3F277C #7C3F27 #277C3F
tetradic
#3F277C #7C273A #647C27 #277C6A
square
#3F277C #7C273A #647C27 #277C6A
split-complementary
#3F277C #7C6A27 #3A7C27
monochromatic
#100A1F #27184D #3F277C #5736AB #7554C9

Accessibility & contrast

On white

11.71
#3F277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3F277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F277C
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F277C#FFFFFF#000000##FFFFFF
##3F277C1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#2C3C4E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f277c;
/* rgb */ color: rgb(63, 39, 124);
/* oklch */ color: oklch(35.5% 0.136 290.8);
Tailwind
colors: {
  custom: {
    50: '#7a63a3',
    500: '#3f277c',
    950: '#000000',
  },
}
SCSS
$custom: #3f277c;
$custom-light: #7a63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f277c",
  "rgb": {
    "r": 63,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 256.941,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35524,
    "c": 0.13639,
    "h": 290.8
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#3F277C
secondary
#94AE51
accent
#DC4CB3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F277C

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

Preview Lab → · Contrast checker → · Palette generator →

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