#3F298C#3F298C

#3F298C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.155 H 286.4°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#3F298C
RGBrgb(63, 41, 140)
HSLhsl(253, 55%, 35%)
HSVhsv(253, 71%, 55%)
CMYKcmyk(55%, 70.7%, 0%, 45.1%)
CIE-LABlab(25.37, 36.86, -51.60)
CIE-LCHlch(25.37, 63.41, 305.54°)
OKLaboklab(37.26% 0.0438 -0.1483)
OKLCHoklch(37.26% 0.155 286.4)
XYZxyz(7.5750, 4.5357, 25.2822)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F298C #768C29
analogous
#29458C #3F298C #70298C
triadic
#3F298C #8C3F29 #298C3F
tetradic
#3F298C #8C2945 #768C29 #298C70
square
#3F298C #8C2945 #768C29 #298C70
split-complementary
#3F298C #8C7029 #458C29
monochromatic
#140D2D #2A1B5D #3F298C #5437BB #785FD0

Accessibility & contrast

On white

11.01
#3F298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3F298C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F298C
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F298C#FFFFFF#000000##FFFFFF
##3F298C1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#1F4357
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f298c;
/* rgb */ color: rgb(63, 41, 140);
/* oklch */ color: oklch(37.3% 0.155 286.4);
Tailwind
colors: {
  custom: {
    50: '#7c65ae',
    500: '#3f298c',
    950: '#000000',
  },
}
SCSS
$custom: #3f298c;
$custom-light: #7c65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3f298c",
  "rgb": {
    "r": 63,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 253.333,
    "s": 54.696,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37264,
    "c": 0.15462,
    "h": 286.4
  },
  "luminance": 0.04536
}

Semantic roles & 50–950 ramp

primary
#3F298C
secondary
#A2B65B
accent
#DE4ABD
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3F298C

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

Preview Lab → · Contrast checker → · Palette generator →

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