#3F319B#3F319B

#3F319B is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.164 H 282.0°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#3F319B
RGBrgb(63, 49, 155)
HSLhsl(248, 52%, 40%)
HSVhsv(248, 68%, 61%)
CMYKcmyk(59.4%, 68.4%, 0%, 39.2%)
CIE-LABlab(28.43, 36.91, -55.83)
CIE-LCHlch(28.43, 66.93, 303.47°)
OKLaboklab(39.88% 0.034 -0.1607)
OKLCHoklch(39.88% 0.164 282)
XYZxyz(9.0628, 5.6193, 31.6111)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F319B #8D9B31
analogous
#31589B #3F319B #74319B
triadic
#3F319B #9B3F31 #319B3F
tetradic
#3F319B #9B3158 #8D9B31 #319B74
square
#3F319B #9B3158 #8D9B31 #319B74
split-complementary
#3F319B #9B7431 #589B31
monochromatic
#19143E #2C226D #3F319B #5645C4 #8073D3

Accessibility & contrast

On white

9.89
#3F319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#3F319B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F319B
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F319B#FFFFFF#000000##FFFFFF
##3F319B1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#054C62
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3f319b;
/* rgb */ color: rgb(63, 49, 155);
/* oklch */ color: oklch(39.9% 0.164 282.0);
Tailwind
colors: {
  custom: {
    50: '#7e6ab9',
    500: '#3f319b',
    950: '#000000',
  },
}
SCSS
$custom: #3f319b;
$custom-light: #7e6ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#3f319b",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 247.925,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.39876,
    "c": 0.16426,
    "h": 282
  },
  "luminance": 0.0562
}

Semantic roles & 50–950 ramp

primary
#3F319B
secondary
#B1BB6D
accent
#DB4CC9
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3F319B

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

Preview Lab → · Contrast checker → · Palette generator →

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