#3F3397#3F3397

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

Color values

HEX#3F3397
RGBrgb(63, 51, 151)
HSLhsl(247, 50%, 40%)
HSVhsv(247, 66%, 59%)
CMYKcmyk(58.3%, 66.2%, 0%, 40.8%)
CIE-LABlab(28.53, 34.40, -53.22)
CIE-LCHlch(28.53, 63.36, 302.88°)
OKLaboklab(39.84% 0.0327 -0.153)
OKLCHoklch(39.84% 0.156 282.1)
XYZxyz(8.8179, 5.6582, 29.8996)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F3397 #8B9733
analogous
#335997 #3F3397 #713397
triadic
#3F3397 #973F33 #33973F
tetradic
#3F3397 #973359 #8B9733 #339771
square
#3F3397 #973359 #8B9733 #339771
split-complementary
#3F3397 #977133 #599733
monochromatic
#19143C #2C2469 #3F3397 #5547C1 #7F74D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3F3397#FFFFFF#000000##FFFFFF
##3F33971.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)
#00479A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#0E4C60
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3f3397;
/* rgb */ color: rgb(63, 51, 151);
/* oklch */ color: oklch(39.8% 0.156 282.1);
Tailwind
colors: {
  custom: {
    50: '#7d6bb6',
    500: '#3f3397',
    950: '#000000',
  },
}
SCSS
$custom: #3f3397;
$custom-light: #7d6bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f3397",
  "rgb": {
    "r": 63,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 247.2,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39842,
    "c": 0.15649,
    "h": 282.1
  },
  "luminance": 0.05659
}

Semantic roles & 50–950 ramp

primary
#3F3397
secondary
#AFB86D
accent
#D94FC8
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #3F3397

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

Preview Lab → · Contrast checker → · Palette generator →

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