#3F308A#3F308A

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

Color values

HEX#3F308A
RGBrgb(63, 48, 138)
HSLhsl(250, 48%, 36%)
HSVhsv(250, 65%, 54%)
CMYKcmyk(54.3%, 65.2%, 0%, 45.9%)
CIE-LABlab(26.75, 32.02, -48.11)
CIE-LCHlch(26.75, 57.79, 303.65°)
OKLaboklab(38.21% 0.0371 -0.138)
OKLCHoklch(38.21% 0.143 285)
XYZxyz(7.6929, 5.0052, 24.6006)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F308A #7B8A30
analogous
#304E8A #3F308A #6C308A
triadic
#3F308A #8A3F30 #308A3F
tetradic
#3F308A #8A304E #7B8A30 #308A6C
square
#3F308A #8A304E #7B8A30 #308A6C
split-complementary
#3F308A #8A6C30 #4E8A30
monochromatic
#16102F #2A205D #3F308A #5440B7 #7A69CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3F308A#FFFFFF#000000##FFFFFF
##3F308A1.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)
#00428D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#204658
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3f308a;
/* rgb */ color: rgb(63, 48, 138);
/* oklch */ color: oklch(38.2% 0.143 285.0);
Tailwind
colors: {
  custom: {
    50: '#7b69ad',
    500: '#3f308a',
    950: '#000000',
  },
}
SCSS
$custom: #3f308a;
$custom-light: #7b69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3f308a",
  "rgb": {
    "r": 63,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 250,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38207,
    "c": 0.14292,
    "h": 285
  },
  "luminance": 0.05006
}

Semantic roles & 50–950 ramp

primary
#3F308A
secondary
#A5B264
accent
#D850C1
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3F308A

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

Preview Lab → · Contrast checker → · Palette generator →

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