#3F255B#3F255B

#3F255B is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.6% C 0.095 H 303.8°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#3F255B
RGBrgb(63, 37, 91)
HSLhsl(269, 42%, 25%)
HSVhsv(269, 59%, 36%)
CMYKcmyk(30.8%, 59.3%, 0%, 64.3%)
CIE-LABlab(20.58, 24.54, -27.94)
CIE-LCHlch(20.58, 37.19, 311.29°)
OKLaboklab(32.57% 0.0528 -0.0788)
OKLCHoklch(32.57% 0.095 303.8)
XYZxyz(4.5994, 3.1352, 10.2584)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F255B #415B25
analogous
#25265B #3F255B #5A255B
triadic
#3F255B #5B3F25 #255B3F
tetradic
#3F255B #5B2526 #415B25 #255B5A
square
#3F255B #5B2526 #415B25 #255B5A
split-complementary
#3F255B #5B5A25 #265B25
monochromatic
#0F0916 #21132F #3F255B #5D3787 #7B48B2

Accessibility & contrast

On white

12.91
#3F255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3F255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F255B
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F255B#FFFFFF#000000##FFFFFF
##3F255B1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11315D
Deuteranopia (green-blind)
#1A325A
Tritanopia (blue-blind)
#3A2F3C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f255b;
/* rgb */ color: rgb(63, 37, 91);
/* oklch */ color: oklch(32.6% 0.095 303.8);
Tailwind
colors: {
  custom: {
    50: '#76608a',
    500: '#3f255b',
    950: '#000000',
  },
}
SCSS
$custom: #3f255b;
$custom-light: #76608a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f255b",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 268.889,
    "s": 42.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.32565,
    "c": 0.09483,
    "h": 303.8
  },
  "luminance": 0.03135
}

Semantic roles & 50–950 ramp

primary
#3F255B
secondary
#6F8E4D
accent
#D25696
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09050B
muted
#7B797C

Preview Lab

Preview with #3F255B

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

Preview Lab → · Contrast checker → · Palette generator →

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