#3F277D#3F277D

#3F277D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.6% C 0.138 H 290.5°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#3F277D
RGBrgb(63, 39, 125)
HSLhsl(257, 52%, 32%)
HSVhsv(257, 69%, 49%)
CMYKcmyk(49.6%, 68.8%, 0%, 51%)
CIE-LABlab(23.63, 33.39, -45.03)
CIE-LCHlch(23.63, 56.06, 306.56°)
OKLaboklab(35.61% 0.0482 -0.129)
OKLCHoklch(35.61% 0.138 290.5)
XYZxyz(6.4760, 3.9882, 19.8266)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F277D #657D27
analogous
#273A7D #3F277D #6A277D
triadic
#3F277D #7D3F27 #277D3F
tetradic
#3F277D #7D273A #657D27 #277D6A
square
#3F277D #7D273A #657D27 #277D6A
split-complementary
#3F277D #7D6A27 #3A7D27
monochromatic
#100A20 #27184E #3F277D #5736AC #7555CA

Accessibility & contrast

On white

11.68
#3F277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3F277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F277D
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F277D#FFFFFF#000000##FFFFFF
##3F277D1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#2B3C4E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f277d;
/* rgb */ color: rgb(63, 39, 125);
/* oklch */ color: oklch(35.6% 0.138 290.5);
Tailwind
colors: {
  custom: {
    50: '#7a63a3',
    500: '#3f277d',
    950: '#000000',
  },
}
SCSS
$custom: #3f277d;
$custom-light: #7a63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f277d",
  "rgb": {
    "r": 63,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 256.744,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35611,
    "c": 0.13771,
    "h": 290.5
  },
  "luminance": 0.03988
}

Semantic roles & 50–950 ramp

primary
#3F277D
secondary
#95AF51
accent
#DC4CB4
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F277D

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

Preview Lab → · Contrast checker → · Palette generator →

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