#3F299B#3F299B

#3F299B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.174 H 283.6°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#3F299B
RGBrgb(63, 41, 155)
HSLhsl(252, 58%, 38%)
HSVhsv(252, 74%, 61%)
CMYKcmyk(59.4%, 73.5%, 0%, 39.2%)
CIE-LABlab(26.76, 41.52, -58.57)
CIE-LCHlch(26.76, 71.79, 305.34°)
OKLaboklab(38.68% 0.0407 -0.1687)
OKLCHoklch(38.68% 0.174 283.6)
XYZxyz(8.7574, 5.0086, 31.5093)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F299B #859B29
analogous
#294C9B #3F299B #78299B
triadic
#3F299B #9B3F29 #299B3F
tetradic
#3F299B #9B294C #859B29 #299B78
square
#3F299B #9B294C #859B29 #299B78
split-complementary
#3F299B #9B7829 #4C9B29
monochromatic
#180F3A #2B1C6B #3F299B #5337CA #7D67D7

Accessibility & contrast

On white

10.49
#3F299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3F299B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F299B
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F299B#FFFFFF#000000##FFFFFF
##3F299B1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#07485F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3f299b;
/* rgb */ color: rgb(63, 41, 155);
/* oklch */ color: oklch(38.7% 0.174 283.6);
Tailwind
colors: {
  custom: {
    50: '#7f65ba',
    500: '#3f299b',
    950: '#000000',
  },
}
SCSS
$custom: #3f299b;
$custom-light: #7f65ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3f299b",
  "rgb": {
    "r": 63,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 251.579,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38681,
    "c": 0.17354,
    "h": 283.6
  },
  "luminance": 0.05009
}

Semantic roles & 50–950 ramp

primary
#3F299B
secondary
#ACBD63
accent
#E146C3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3F299B

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

Preview Lab → · Contrast checker → · Palette generator →

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