#3F257A#3F257A

#3F257A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.0% C 0.136 H 291.9°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#3F257A
RGBrgb(63, 37, 122)
HSLhsl(258, 53%, 31%)
HSVhsv(258, 70%, 48%)
CMYKcmyk(48.4%, 69.7%, 0%, 52.2%)
CIE-LABlab(22.95, 33.65, -44.24)
CIE-LCHlch(22.95, 55.58, 307.26°)
OKLaboklab(35.04% 0.0508 -0.1267)
OKLCHoklch(35.04% 0.136 291.9)
XYZxyz(6.2233, 3.7848, 18.8112)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F257A #607A25
analogous
#25357A #3F257A #69257A
triadic
#3F257A #7A3F25 #257A3F
tetradic
#3F257A #7A2535 #607A25 #257A69
square
#3F257A #7A2535 #607A25 #257A69
split-complementary
#3F257A #7A6925 #357A25
monochromatic
#0F091C #27174B #3F257A #5733A9 #7550CA

Accessibility & contrast

On white

11.95
#3F257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3F257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F257A
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F257A#FFFFFF#000000##FFFFFF
##3F257A1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#2D3A4C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3f257a;
/* rgb */ color: rgb(63, 37, 122);
/* oklch */ color: oklch(35.0% 0.136 291.9);
Tailwind
colors: {
  custom: {
    50: '#7a61a1',
    500: '#3f257a',
    950: '#000000',
  },
}
SCSS
$custom: #3f257a;
$custom-light: #7a61a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f257a",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 258.353,
    "s": 53.459,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35039,
    "c": 0.13649,
    "h": 291.9
  },
  "luminance": 0.03785
}

Semantic roles & 50–950 ramp

primary
#3F257A
secondary
#90AC4E
accent
#DD4BB0
background
#F7F5FA
surface
#EEEAF3
border
#C9C6CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F257A

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

Preview Lab → · Contrast checker → · Palette generator →

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