#3F338C#3F338C

#3F338C is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.142 H 283.8°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#3F338C
RGBrgb(63, 51, 140)
HSLhsl(248, 47%, 37%)
HSVhsv(248, 64%, 55%)
CMYKcmyk(55%, 63.6%, 0%, 45.1%)
CIE-LABlab(27.62, 30.79, -47.93)
CIE-LCHlch(27.62, 56.97, 302.72°)
OKLaboklab(38.89% 0.0337 -0.1375)
OKLCHoklch(38.89% 0.142 283.8)
XYZxyz(7.9659, 5.3174, 25.4125)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F338C #808C33
analogous
#33538C #3F338C #6C338C
triadic
#3F338C #8C3F33 #338C3F
tetradic
#3F338C #8C3353 #808C33 #338C6C
square
#3F338C #8C3353 #808C33 #338C6C
split-complementary
#3F338C #8C6C33 #538C33
monochromatic
#171232 #2B235F #3F338C #5343B9 #7B6FCB

Accessibility & contrast

On white

10.18
#3F338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#3F338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F338C
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F338C#FFFFFF#000000##FFFFFF
##3F338C1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#1E485A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3f338c;
/* rgb */ color: rgb(63, 51, 140);
/* oklch */ color: oklch(38.9% 0.142 283.8);
Tailwind
colors: {
  custom: {
    50: '#7c6bae',
    500: '#3f338c',
    950: '#000000',
  },
}
SCSS
$custom: #3f338c;
$custom-light: #7c6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#3f338c",
  "rgb": {
    "r": 63,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 248.09,
    "s": 46.597,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38893,
    "c": 0.14159,
    "h": 283.8
  },
  "luminance": 0.05318
}

Semantic roles & 50–950 ramp

primary
#3F338C
secondary
#A8B268
accent
#D652C4
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #3F338C

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

Preview Lab → · Contrast checker → · Palette generator →

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