#3F338B#3F338B

#3F338B is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.8% C 0.140 H 283.9°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#3F338B
RGBrgb(63, 51, 139)
HSLhsl(248, 46%, 37%)
HSVhsv(248, 63%, 55%)
CMYKcmyk(54.7%, 63.3%, 0%, 45.5%)
CIE-LABlab(27.54, 30.46, -47.44)
CIE-LCHlch(27.54, 56.38, 302.71°)
OKLaboklab(38.81% 0.0338 -0.1361)
OKLCHoklch(38.81% 0.14 283.9)
XYZxyz(7.8925, 5.2881, 25.0259)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F338B #7F8B33
analogous
#33538B #3F338B #6B338B
triadic
#3F338B #8B3F33 #338B3F
tetradic
#3F338B #8B3353 #7F8B33 #338B6B
square
#3F338B #8B3353 #7F8B33 #338B6B
split-complementary
#3F338B #8B6B33 #538B33
monochromatic
#161231 #2B235E #3F338B #5343B8 #7B6ECA

Accessibility & contrast

On white

10.21
#3F338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F338B
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F338B#FFFFFF#000000##FFFFFF
##3F338B1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#1F485A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3f338b;
/* rgb */ color: rgb(63, 51, 139);
/* oklch */ color: oklch(38.8% 0.140 283.9);
Tailwind
colors: {
  custom: {
    50: '#7b6bae',
    500: '#3f338b',
    950: '#000000',
  },
}
SCSS
$custom: #3f338b;
$custom-light: #7b6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#3f338b",
  "rgb": {
    "r": 63,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 248.182,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38809,
    "c": 0.1402,
    "h": 283.9
  },
  "luminance": 0.05288
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F338B

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

Preview Lab → · Contrast checker → · Palette generator →

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