#3F2498#3F2498

#3F2498 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.175 H 285.0°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#3F2498
RGBrgb(63, 36, 152)
HSLhsl(254, 62%, 37%)
HSVhsv(254, 76%, 60%)
CMYKcmyk(58.6%, 76.3%, 0%, 40.4%)
CIE-LABlab(25.52, 43.28, -58.77)
CIE-LCHlch(25.52, 72.99, 306.37°)
OKLaboklab(37.72% 0.0453 -0.1693)
OKLCHoklch(37.72% 0.175 285)
XYZxyz(8.3465, 4.5850, 30.1449)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2498 #7D9824
analogous
#244398 #3F2498 #792498
triadic
#3F2498 #983F24 #24983F
tetradic
#3F2498 #982443 #7D9824 #249879
square
#3F2498 #982443 #7D9824 #249879
split-complementary
#3F2498 #987924 #439824
monochromatic
#160D35 #2A1867 #3F2498 #5430C9 #7A5ED9

Accessibility & contrast

On white

10.95
#3F2498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3F2498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2498
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2498#FFFFFF#000000##FFFFFF
##3F24981.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#0F455C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f2498;
/* rgb */ color: rgb(63, 36, 152);
/* oklch */ color: oklch(37.7% 0.175 285.0);
Tailwind
colors: {
  custom: {
    50: '#7f62b7',
    500: '#3f2498',
    950: '#000000',
  },
}
SCSS
$custom: #3f2498;
$custom-light: #7f62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2498",
  "rgb": {
    "r": 63,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 253.966,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37716,
    "c": 0.17521,
    "h": 285
  },
  "luminance": 0.04586
}

Semantic roles & 50–950 ramp

primary
#3F2498
secondary
#A6BE5A
accent
#E543BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F2498

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

Preview Lab → · Contrast checker → · Palette generator →

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