#3F309D#3F309D

#3F309D is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.168 H 281.9°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#3F309D
RGBrgb(63, 48, 157)
HSLhsl(248, 53%, 40%)
HSVhsv(248, 69%, 62%)
CMYKcmyk(59.9%, 69.4%, 0%, 38.4%)
CIE-LABlab(28.39, 38.15, -57.11)
CIE-LCHlch(28.39, 68.68, 303.75°)
OKLaboklab(39.9% 0.0346 -0.1645)
OKLCHoklch(39.9% 0.168 281.9)
XYZxyz(9.1908, 5.6044, 32.4892)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F309D #8E9D30
analogous
#30579D #3F309D #76309D
triadic
#3F309D #9D3F30 #309D3F
tetradic
#3F309D #9D3057 #8E9D30 #309D76
square
#3F309D #9D3057 #8E9D30 #309D76
split-complementary
#3F309D #9D7630 #579D30
monochromatic
#19133F #2C226E #3F309D #5644C6 #8173D4

Accessibility & contrast

On white

9.90
#3F309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#3F309D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F309D
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F309D#FFFFFF#000000##FFFFFF
##3F309D1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3f309d;
/* rgb */ color: rgb(63, 48, 157);
/* oklch */ color: oklch(39.9% 0.168 281.9);
Tailwind
colors: {
  custom: {
    50: '#7f6abb',
    500: '#3f309d',
    950: '#000000',
  },
}
SCSS
$custom: #3f309d;
$custom-light: #7f6abb;
$custom-dark: #000000;
JSON
{
  "hex": "#3f309d",
  "rgb": {
    "r": 63,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 248.257,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39903,
    "c": 0.16806,
    "h": 281.9
  },
  "luminance": 0.05605
}

Semantic roles & 50–950 ramp

primary
#3F309D
secondary
#B1BC6D
accent
#DD4BC9
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3F309D

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

Preview Lab → · Contrast checker → · Palette generator →

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