#3F258A#3F258A

#3F258A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.157 H 287.8°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#3F258A
RGBrgb(63, 37, 138)
HSLhsl(255, 58%, 34%)
HSVhsv(255, 73%, 54%)
CMYKcmyk(54.3%, 73.2%, 0%, 45.9%)
CIE-LABlab(24.37, 38.51, -51.99)
CIE-LCHlch(24.37, 64.70, 306.53°)
OKLaboklab(36.49% 0.0478 -0.1494)
OKLCHoklch(36.49% 0.157 287.8)
XYZxyz(7.2976, 4.2145, 24.4688)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F258A #708A25
analogous
#253D8A #3F258A #72258A
triadic
#3F258A #8A3F25 #258A3F
tetradic
#3F258A #8A253D #708A25 #258A72
square
#3F258A #8A253D #708A25 #258A72
split-complementary
#3F258A #8A7225 #3D8A25
monochromatic
#130B29 #29185A #3F258A #5532BA #7757D2

Accessibility & contrast

On white

11.39
#3F258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3F258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F258A
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F258A#FFFFFF#000000##FFFFFF
##3F258A1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#214055
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3f258a;
/* rgb */ color: rgb(63, 37, 138);
/* oklch */ color: oklch(36.5% 0.157 287.8);
Tailwind
colors: {
  custom: {
    50: '#7c62ad',
    500: '#3f258a',
    950: '#000000',
  },
}
SCSS
$custom: #3f258a;
$custom-light: #7c62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3f258a",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 255.446,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36494,
    "c": 0.1569,
    "h": 287.8
  },
  "luminance": 0.04215
}

Semantic roles & 50–950 ramp

primary
#3F258A
secondary
#9DB754
accent
#E147B9
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3F258A

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

Preview Lab → · Contrast checker → · Palette generator →

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