#3F298B#3F298B

#3F298B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.153 H 286.6°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#3F298B
RGBrgb(63, 41, 139)
HSLhsl(253, 54%, 35%)
HSVhsv(253, 71%, 55%)
CMYKcmyk(54.7%, 70.5%, 0%, 45.5%)
CIE-LABlab(25.28, 36.55, -51.13)
CIE-LCHlch(25.28, 62.85, 305.56°)
OKLaboklab(37.17% 0.0439 -0.1469)
OKLCHoklch(37.17% 0.153 286.6)
XYZxyz(7.5017, 4.5063, 24.8956)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F298B #758B29
analogous
#29448B #3F298B #70298B
triadic
#3F298B #8B3F29 #298B3F
tetradic
#3F298B #8B2944 #758B29 #298B70
square
#3F298B #8B2944 #758B29 #298B70
split-complementary
#3F298B #8B7029 #448B29
monochromatic
#140D2C #2A1B5C #3F298B #5437BA #785FD0

Accessibility & contrast

On white

11.04
#3F298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3F298B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F298B
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F298B#FFFFFF#000000##FFFFFF
##3F298B1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#204256
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f298b;
/* rgb */ color: rgb(63, 41, 139);
/* oklch */ color: oklch(37.2% 0.153 286.6);
Tailwind
colors: {
  custom: {
    50: '#7c65ae',
    500: '#3f298b',
    950: '#000000',
  },
}
SCSS
$custom: #3f298b;
$custom-light: #7c65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3f298b",
  "rgb": {
    "r": 63,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 253.469,
    "s": 54.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37172,
    "c": 0.15333,
    "h": 286.6
  },
  "luminance": 0.04507
}

Semantic roles & 50–950 ramp

primary
#3F298B
secondary
#A1B55B
accent
#DE4ABD
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3F298B

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

Preview Lab → · Contrast checker → · Palette generator →

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