#3F319A#3F319A

#3F319A is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.8% C 0.163 H 282.1°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#3F319A
RGBrgb(63, 49, 154)
HSLhsl(248, 52%, 40%)
HSVhsv(248, 68%, 60%)
CMYKcmyk(59.1%, 68.2%, 0%, 39.6%)
CIE-LABlab(28.34, 36.59, -55.36)
CIE-LCHlch(28.34, 66.36, 303.46°)
OKLaboklab(39.78% 0.0342 -0.1593)
OKLCHoklch(39.78% 0.163 282.1)
XYZxyz(8.9791, 5.5859, 31.1706)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F319A #8C9A31
analogous
#31589A #3F319A #74319A
triadic
#3F319A #9A3F31 #319A3F
tetradic
#3F319A #9A3158 #8C9A31 #319A74
square
#3F319A #9A3158 #8C9A31 #319A74
split-complementary
#3F319A #9A7431 #589A31
monochromatic
#19133D #2C226C #3F319A #5545C4 #8073D2

Accessibility & contrast

On white

9.92
#3F319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F319A
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F319A#FFFFFF#000000##FFFFFF
##3F319A1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#003F98
Tritanopia (blue-blind)
#084C61
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3f319a;
/* rgb */ color: rgb(63, 49, 154);
/* oklch */ color: oklch(39.8% 0.163 282.1);
Tailwind
colors: {
  custom: {
    50: '#7e6ab9',
    500: '#3f319a',
    950: '#000000',
  },
}
SCSS
$custom: #3f319a;
$custom-light: #7e6ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#3f319a",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 248,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39785,
    "c": 0.16295,
    "h": 282.1
  },
  "luminance": 0.05586
}

Semantic roles & 50–950 ramp

primary
#3F319A
secondary
#B0BA6C
accent
#DB4DC8
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3F319A

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

Preview Lab → · Contrast checker → · Palette generator →

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