#3F339E#3F339E

#3F339E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.5% C 0.166 H 281.1°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#3F339E
RGBrgb(63, 51, 158)
HSLhsl(247, 51%, 41%)
HSVhsv(247, 68%, 62%)
CMYKcmyk(60.1%, 67.7%, 0%, 38%)
CIE-LABlab(29.14, 36.69, -56.49)
CIE-LCHlch(29.14, 67.36, 303.00°)
OKLaboklab(40.47% 0.0319 -0.1627)
OKLCHoklch(40.47% 0.166 281.1)
XYZxyz(9.4033, 5.8924, 32.9830)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F339E #929E33
analogous
#335C9E #3F339E #74339E
triadic
#3F339E #9E3F33 #339E3F
tetradic
#3F339E #9E335C #929E33 #339E74
square
#3F339E #9E335C #929E33 #339E74
split-complementary
#3F339E #9E7433 #5C9E33
monochromatic
#1A1541 #2D2470 #3F339E #574AC4 #8278D3

Accessibility & contrast

On white

9.64
#3F339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#3F339E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F339E
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F339E#FFFFFF#000000##FFFFFF
##3F339E1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3f339e;
/* rgb */ color: rgb(63, 51, 158);
/* oklch */ color: oklch(40.5% 0.166 281.1);
Tailwind
colors: {
  custom: {
    50: '#7f6cbc',
    500: '#3f339e',
    950: '#000000',
  },
}
SCSS
$custom: #3f339e;
$custom-light: #7f6cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#3f339e",
  "rgb": {
    "r": 63,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 246.729,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40469,
    "c": 0.16575,
    "h": 281.1
  },
  "luminance": 0.05893
}

Semantic roles & 50–950 ramp

primary
#3F339E
secondary
#B3BC71
accent
#DB4DCB
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3F339E

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

Preview Lab → · Contrast checker → · Palette generator →

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