#3F338A#3F338A

#3F338A is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.7% C 0.139 H 284.1°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#3F338A
RGBrgb(63, 51, 138)
HSLhsl(248, 46%, 37%)
HSVhsv(248, 63%, 54%)
CMYKcmyk(54.3%, 63%, 0%, 45.9%)
CIE-LABlab(27.46, 30.14, -46.95)
CIE-LCHlch(27.46, 55.79, 302.69°)
OKLaboklab(38.73% 0.0339 -0.1346)
OKLCHoklch(38.73% 0.139 284.1)
XYZxyz(7.8198, 5.2590, 24.6429)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F338A #7E8A33
analogous
#33538A #3F338A #6B338A
triadic
#3F338A #8A3F33 #338A3F
tetradic
#3F338A #8A3353 #7E8A33 #338A6B
square
#3F338A #8A3353 #7E8A33 #338A6B
split-complementary
#3F338A #8A6B33 #538A33
monochromatic
#161231 #2B225D #3F338A #5344B7 #7B6EC9

Accessibility & contrast

On white

10.23
#3F338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#3F338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F338A
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F338A#FFFFFF#000000##FFFFFF
##3F338A1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#204859
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3f338a;
/* rgb */ color: rgb(63, 51, 138);
/* oklch */ color: oklch(38.7% 0.139 284.1);
Tailwind
colors: {
  custom: {
    50: '#7b6bad',
    500: '#3f338a',
    950: '#000000',
  },
}
SCSS
$custom: #3f338a;
$custom-light: #7b6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#3f338a",
  "rgb": {
    "r": 63,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 248.276,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38725,
    "c": 0.13882,
    "h": 284.1
  },
  "luminance": 0.05259
}

Semantic roles & 50–950 ramp

primary
#3F338A
secondary
#A7B167
accent
#D652C4
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3F338A

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

Preview Lab → · Contrast checker → · Palette generator →

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