#3F338F#3F338F

#3F338F is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.1% C 0.146 H 283.3°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#3F338F
RGBrgb(63, 51, 143)
HSLhsl(248, 47%, 38%)
HSVhsv(248, 64%, 56%)
CMYKcmyk(55.9%, 64.3%, 0%, 43.9%)
CIE-LABlab(27.86, 31.77, -49.39)
CIE-LCHlch(27.86, 58.73, 302.75°)
OKLaboklab(39.15% 0.0335 -0.1418)
OKLCHoklch(39.15% 0.146 283.3)
XYZxyz(8.1901, 5.4071, 26.5934)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F338F #838F33
analogous
#33558F #3F338F #6D338F
triadic
#3F338F #8F3F33 #338F3F
tetradic
#3F338F #8F3355 #838F33 #338F6D
square
#3F338F #8F3355 #838F33 #338F6D
split-complementary
#3F338F #8F6D33 #558F33
monochromatic
#171335 #2B2362 #3F338F #5343BC #7C70CC

Accessibility & contrast

On white

10.09
#3F338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#3F338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F338F
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F338F#FFFFFF#000000##FFFFFF
##3F338F1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#1B495C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3f338f;
/* rgb */ color: rgb(63, 51, 143);
/* oklch */ color: oklch(39.1% 0.146 283.3);
Tailwind
colors: {
  custom: {
    50: '#7c6bb1',
    500: '#3f338f',
    950: '#000000',
  },
}
SCSS
$custom: #3f338f;
$custom-light: #7c6bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f338f",
  "rgb": {
    "r": 63,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 247.826,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39147,
    "c": 0.14569,
    "h": 283.3
  },
  "luminance": 0.05408
}

Semantic roles & 50–950 ramp

primary
#3F338F
secondary
#AAB46A
accent
#D751C6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3F338F

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

Preview Lab → · Contrast checker → · Palette generator →

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