#3F338E#3F338E

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

Color values

HEX#3F338E
RGBrgb(63, 51, 142)
HSLhsl(248, 47%, 38%)
HSVhsv(248, 64%, 56%)
CMYKcmyk(55.6%, 64.1%, 0%, 44.3%)
CIE-LABlab(27.78, 31.45, -48.90)
CIE-LCHlch(27.78, 58.14, 302.74°)
OKLaboklab(39.06% 0.0336 -0.1404)
OKLCHoklch(39.06% 0.144 283.5)
XYZxyz(8.1147, 5.3769, 26.1962)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F338E #828E33
analogous
#33548E #3F338E #6C338E
triadic
#3F338E #8E3F33 #338E3F
tetradic
#3F338E #8E3354 #828E33 #338E6C
square
#3F338E #8E3354 #828E33 #338E6C
split-complementary
#3F338E #8E6C33 #548E33
monochromatic
#171334 #2B2361 #3F338E #5343BB #7C70CC

Accessibility & contrast

On white

10.12
#3F338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F338E
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F338E#FFFFFF#000000##FFFFFF
##3F338E1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#1C495B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3f338e;
/* rgb */ color: rgb(63, 51, 142);
/* oklch */ color: oklch(39.1% 0.144 283.5);
Tailwind
colors: {
  custom: {
    50: '#7c6bb0',
    500: '#3f338e',
    950: '#000000',
  },
}
SCSS
$custom: #3f338e;
$custom-light: #7c6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f338e",
  "rgb": {
    "r": 63,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 247.912,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39062,
    "c": 0.14433,
    "h": 283.5
  },
  "luminance": 0.05377
}

Semantic roles & 50–950 ramp

primary
#3F338E
secondary
#AAB469
accent
#D751C5
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #3F338E

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

Preview Lab → · Contrast checker → · Palette generator →

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