#3F3497#3F3497

#3F3497 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.0% C 0.155 H 281.8°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#3F3497
RGBrgb(63, 52, 151)
HSLhsl(247, 49%, 40%)
HSVhsv(247, 66%, 59%)
CMYKcmyk(58.3%, 65.6%, 0%, 40.8%)
CIE-LABlab(28.76, 33.78, -52.84)
CIE-LCHlch(28.76, 62.71, 302.59°)
OKLaboklab(40.01% 0.0318 -0.1519)
OKLCHoklch(40.01% 0.155 281.8)
XYZxyz(8.8621, 5.7465, 29.9144)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F3497 #8C9734
analogous
#345A97 #3F3497 #713497
triadic
#3F3497 #973F34 #34973F
tetradic
#3F3497 #97345A #8C9734 #349771
square
#3F3497 #97345A #8C9734 #349771
split-complementary
#3F3497 #977134 #5A9734
monochromatic
#19153C #2C2469 #3F3497 #5548C0 #8076D0

Accessibility & contrast

On white

9.77
#3F3497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F3497
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F3497#FFFFFF#000000##FFFFFF
##3F34971.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#0E4D60
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3f3497;
/* rgb */ color: rgb(63, 52, 151);
/* oklch */ color: oklch(40.0% 0.155 281.8);
Tailwind
colors: {
  custom: {
    50: '#7d6cb6',
    500: '#3f3497',
    950: '#000000',
  },
}
SCSS
$custom: #3f3497;
$custom-light: #7d6cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f3497",
  "rgb": {
    "r": 63,
    "g": 52,
    "b": 151
  },
  "hsl": {
    "h": 246.667,
    "s": 48.768,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4001,
    "c": 0.15521,
    "h": 281.8
  },
  "luminance": 0.05747
}

Semantic roles & 50–950 ramp

primary
#3F3497
secondary
#B0B86F
accent
#D84FC9
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #3F3497

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

Preview Lab → · Contrast checker → · Palette generator →

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