#3F319F#3F319F

#3F319F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.2% C 0.169 H 281.4°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#3F319F
RGBrgb(63, 49, 159)
HSLhsl(248, 53%, 41%)
HSVhsv(248, 69%, 62%)
CMYKcmyk(60.4%, 69.2%, 0%, 37.6%)
CIE-LABlab(28.79, 38.21, -57.68)
CIE-LCHlch(28.79, 69.18, 303.52°)
OKLaboklab(40.24% 0.0334 -0.1661)
OKLCHoklch(40.24% 0.169 281.4)
XYZxyz(9.4043, 5.7559, 33.4096)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F319F #919F31
analogous
#315A9F #3F319F #76319F
triadic
#3F319F #9F3F31 #319F3F
tetradic
#3F319F #9F315A #919F31 #319F76
square
#3F319F #9F315A #919F31 #319F76
split-complementary
#3F319F #9F7631 #5A9F31
monochromatic
#1A1441 #2C2370 #3F319F #5747C6 #8276D5

Accessibility & contrast

On white

9.76
#3F319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#3F319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F319F
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F319F#FFFFFF#000000##FFFFFF
##3F319F1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3f319f;
/* rgb */ color: rgb(63, 49, 159);
/* oklch */ color: oklch(40.2% 0.169 281.4);
Tailwind
colors: {
  custom: {
    50: '#7f6abc',
    500: '#3f319f',
    950: '#000000',
  },
}
SCSS
$custom: #3f319f;
$custom-light: #7f6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#3f319f",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 247.636,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40243,
    "c": 0.16945,
    "h": 281.4
  },
  "luminance": 0.05757
}

Semantic roles & 50–950 ramp

primary
#3F319F
secondary
#B3BD6F
accent
#DC4CCA
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3F319F

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

Preview Lab → · Contrast checker → · Palette generator →

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