#3F339A#3F339A

#3F339A is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.1% C 0.160 H 281.6°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#3F339A
RGBrgb(63, 51, 154)
HSLhsl(247, 50%, 40%)
HSVhsv(247, 67%, 60%)
CMYKcmyk(59.1%, 66.9%, 0%, 39.6%)
CIE-LABlab(28.79, 35.38, -54.63)
CIE-LCHlch(28.79, 65.08, 302.93°)
OKLaboklab(40.11% 0.0324 -0.1572)
OKLCHoklch(40.11% 0.16 281.6)
XYZxyz(9.0646, 5.7569, 31.1991)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F339A #8E9A33
analogous
#335B9A #3F339A #72339A
triadic
#3F339A #9A3F33 #339A3F
tetradic
#3F339A #9A335B #8E9A33 #339A72
square
#3F339A #9A335B #8E9A33 #339A72
split-complementary
#3F339A #9A7233 #5B9A33
monochromatic
#19153E #2C246C #3F339A #5648C2 #8176D2

Accessibility & contrast

On white

9.76
#3F339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F339A
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F339A#FFFFFF#000000##FFFFFF
##3F339A1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#074D62
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3f339a;
/* rgb */ color: rgb(63, 51, 154);
/* oklch */ color: oklch(40.1% 0.160 281.6);
Tailwind
colors: {
  custom: {
    50: '#7e6cb9',
    500: '#3f339a',
    950: '#000000',
  },
}
SCSS
$custom: #3f339a;
$custom-light: #7e6cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#3f339a",
  "rgb": {
    "r": 63,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 246.99,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40109,
    "c": 0.16048,
    "h": 281.6
  },
  "luminance": 0.05758
}

Semantic roles & 50–950 ramp

primary
#3F339A
secondary
#B1BA6F
accent
#DA4EC9
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #3F339A

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

Preview Lab → · Contrast checker → · Palette generator →

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