#3F2FA1#3F2FA1

#3F2FA1 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.174 H 281.5°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#3F2FA1
RGBrgb(63, 47, 161)
HSLhsl(248, 55%, 41%)
HSVhsv(248, 71%, 63%)
CMYKcmyk(60.9%, 70.8%, 0%, 36.9%)
CIE-LABlab(28.54, 40.02, -59.29)
CIE-LCHlch(28.54, 71.53, 304.02°)
OKLaboklab(40.12% 0.0347 -0.1708)
OKLCHoklch(40.12% 0.174 281.5)
XYZxyz(9.4974, 5.6623, 34.3038)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2FA1 #91A12F
analogous
#2F58A1 #3F2FA1 #782FA1
triadic
#3F2FA1 #A13F2F #2FA13F
tetradic
#3F2FA1 #A12F58 #91A12F #2FA178
square
#3F2FA1 #A12F58 #91A12F #2FA178
split-complementary
#3F2FA1 #A1782F #58A12F
monochromatic
#1A1342 #2C2172 #3F2FA1 #5745C9 #8274D6

Accessibility & contrast

On white

9.85
#3F2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#3F2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2FA1
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2FA1#FFFFFF#000000##FFFFFF
##3F2FA11.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#003F9F
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3f2fa1;
/* rgb */ color: rgb(63, 47, 161);
/* oklch */ color: oklch(40.1% 0.174 281.5);
Tailwind
colors: {
  custom: {
    50: '#8069be',
    500: '#3f2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #3f2fa1;
$custom-light: #8069be;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2fa1",
  "rgb": {
    "r": 63,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 248.421,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40124,
    "c": 0.17435,
    "h": 281.5
  },
  "luminance": 0.05663
}

Semantic roles & 50–950 ramp

primary
#3F2FA1
secondary
#B3BE6E
accent
#DE4AC9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3F2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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