#3F3797#3F3797

#3F3797 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.5% C 0.151 H 281.0°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#3F3797
RGBrgb(63, 55, 151)
HSLhsl(245, 47%, 40%)
HSVhsv(245, 64%, 59%)
CMYKcmyk(58.3%, 63.6%, 0%, 40.8%)
CIE-LABlab(29.47, 31.91, -51.69)
CIE-LCHlch(29.47, 60.74, 301.69°)
OKLaboklab(40.53% 0.0289 -0.1485)
OKLCHoklch(40.53% 0.151 281)
XYZxyz(9.0003, 6.0229, 29.9604)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F3797 #8F9737
analogous
#375F97 #3F3797 #6F3797
triadic
#3F3797 #973F37 #37973F
tetradic
#3F3797 #97375F #8F9737 #37976F
square
#3F3797 #97375F #8F9737 #37976F
split-complementary
#3F3797 #976F37 #5F9737
monochromatic
#1A163D #2C276A #3F3797 #564DBE #817ACF

Accessibility & contrast

On white

9.52
#3F3797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#3F3797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F3797
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F3797#FFFFFF#000000##FFFFFF
##3F37971.009.522.209.52
#FFFFFF9.521.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#0D4F61
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3f3797;
/* rgb */ color: rgb(63, 55, 151);
/* oklch */ color: oklch(40.5% 0.151 281.0);
Tailwind
colors: {
  custom: {
    50: '#7d6eb6',
    500: '#3f3797',
    950: '#000000',
  },
}
SCSS
$custom: #3f3797;
$custom-light: #7d6eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f3797",
  "rgb": {
    "r": 63,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 245,
    "s": 46.602,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40525,
    "c": 0.15132,
    "h": 281
  },
  "luminance": 0.06024
}

Semantic roles & 50–950 ramp

primary
#3F3797
secondary
#B2B872
accent
#D652CB
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #3F3797

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

Preview Lab → · Contrast checker → · Palette generator →

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