#3F338D#3F338D

#3F338D is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.143 H 283.6°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#3F338D
RGBrgb(63, 51, 141)
HSLhsl(248, 47%, 38%)
HSVhsv(248, 64%, 55%)
CMYKcmyk(55.3%, 63.8%, 0%, 44.7%)
CIE-LABlab(27.70, 31.12, -48.42)
CIE-LCHlch(27.70, 57.56, 302.73°)
OKLaboklab(38.98% 0.0337 -0.1389)
OKLCHoklch(38.98% 0.143 283.6)
XYZxyz(8.0400, 5.3470, 25.8026)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F338D #818D33
analogous
#33548D #3F338D #6C338D
triadic
#3F338D #8D3F33 #338D3F
tetradic
#3F338D #8D3354 #818D33 #338D6C
square
#3F338D #8D3354 #818D33 #338D6C
split-complementary
#3F338D #8D6C33 #548D33
monochromatic
#171233 #2B2360 #3F338D #5343BA #7C6FCB

Accessibility & contrast

On white

10.15
#3F338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#3F338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F338D
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F338D#FFFFFF#000000##FFFFFF
##3F338D1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#1D495B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3f338d;
/* rgb */ color: rgb(63, 51, 141);
/* oklch */ color: oklch(39.0% 0.143 283.6);
Tailwind
colors: {
  custom: {
    50: '#7c6baf',
    500: '#3f338d',
    950: '#000000',
  },
}
SCSS
$custom: #3f338d;
$custom-light: #7c6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f338d",
  "rgb": {
    "r": 63,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 248,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38977,
    "c": 0.14296,
    "h": 283.6
  },
  "luminance": 0.05348
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F338D

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

Preview Lab → · Contrast checker → · Palette generator →

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