#3F339D#3F339D

#3F339D is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.4% C 0.164 H 281.2°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#3F339D
RGBrgb(63, 51, 157)
HSLhsl(247, 51%, 41%)
HSVhsv(247, 68%, 62%)
CMYKcmyk(59.9%, 67.5%, 0%, 38.4%)
CIE-LABlab(29.05, 36.36, -56.03)
CIE-LCHlch(29.05, 66.79, 302.98°)
OKLaboklab(40.38% 0.032 -0.1613)
OKLCHoklch(40.38% 0.164 281.2)
XYZxyz(9.3176, 5.8581, 32.5315)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F339D #919D33
analogous
#335C9D #3F339D #74339D
triadic
#3F339D #9D3F33 #339D3F
tetradic
#3F339D #9D335C #919D33 #339D74
square
#3F339D #9D335C #919D33 #339D74
split-complementary
#3F339D #9D7433 #5C9D33
monochromatic
#1A1541 #2C246F #3F339D #5749C4 #8277D3

Accessibility & contrast

On white

9.67
#3F339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#3F339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F339D
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F339D#FFFFFF#000000##FFFFFF
##3F339D1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3f339d;
/* rgb */ color: rgb(63, 51, 157);
/* oklch */ color: oklch(40.4% 0.164 281.2);
Tailwind
colors: {
  custom: {
    50: '#7f6cbb',
    500: '#3f339d',
    950: '#000000',
  },
}
SCSS
$custom: #3f339d;
$custom-light: #7f6cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#3f339d",
  "rgb": {
    "r": 63,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 246.792,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40378,
    "c": 0.16443,
    "h": 281.2
  },
  "luminance": 0.05859
}

Semantic roles & 50–950 ramp

primary
#3F339D
secondary
#B3BB70
accent
#DA4DCA
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3F339D

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

Preview Lab → · Contrast checker → · Palette generator →

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