#3F267F#3F267F

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

Color values

HEX#3F267F
RGBrgb(63, 38, 127)
HSLhsl(257, 54%, 32%)
HSVhsv(257, 70%, 50%)
CMYKcmyk(50.4%, 70.1%, 0%, 50.2%)
CIE-LABlab(23.59, 34.59, -46.36)
CIE-LCHlch(23.59, 57.84, 306.72°)
OKLaboklab(35.63% 0.049 -0.1329)
OKLCHoklch(35.63% 0.142 290.2)
XYZxyz(6.5727, 3.9750, 20.4955)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F267F #667F26
analogous
#263A7F #3F267F #6C267F
triadic
#3F267F #7F3F26 #267F3F
tetradic
#3F267F #7F263A #667F26 #267F6C
square
#3F267F #7F263A #667F26 #267F6C
split-complementary
#3F267F #7F6C26 #3A7F26
monochromatic
#100A21 #281850 #3F267F #5634AE #7554CC

Accessibility & contrast

On white

11.70
#3F267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F267F
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F267F#FFFFFF#000000##FFFFFF
##3F267F1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#2A3C4F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f267f;
/* rgb */ color: rgb(63, 38, 127);
/* oklch */ color: oklch(35.6% 0.142 290.2);
Tailwind
colors: {
  custom: {
    50: '#7a62a5',
    500: '#3f267f',
    950: '#000000',
  },
}
SCSS
$custom: #3f267f;
$custom-light: #7a62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f267f",
  "rgb": {
    "r": 63,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 256.854,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35633,
    "c": 0.14165,
    "h": 290.2
  },
  "luminance": 0.03975
}

Semantic roles & 50–950 ramp

primary
#3F267F
secondary
#95B051
accent
#DD4AB4
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F267F

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

Preview Lab → · Contrast checker → · Palette generator →

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