#3F309F#3F309F

#3F309F is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.171 H 281.6°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#3F309F
RGBrgb(63, 48, 159)
HSLhsl(248, 54%, 41%)
HSVhsv(248, 70%, 62%)
CMYKcmyk(60.4%, 69.8%, 0%, 37.6%)
CIE-LABlab(28.57, 38.80, -58.03)
CIE-LCHlch(28.57, 69.80, 303.77°)
OKLaboklab(40.09% 0.0343 -0.1672)
OKLCHoklch(40.09% 0.171 281.6)
XYZxyz(9.3629, 5.6732, 33.3958)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F309F #909F30
analogous
#30589F #3F309F #76309F
triadic
#3F309F #9F3F30 #309F3F
tetradic
#3F309F #9F3058 #909F30 #309F76
square
#3F309F #9F3058 #909F30 #309F76
split-complementary
#3F309F #9F7630 #589F30
monochromatic
#1A1441 #2C2270 #3F309F #5745C7 #8174D5

Accessibility & contrast

On white

9.84
#3F309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#3F309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F309F
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F309F#FFFFFF#000000##FFFFFF
##3F309F1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3f309f;
/* rgb */ color: rgb(63, 48, 159);
/* oklch */ color: oklch(40.1% 0.171 281.6);
Tailwind
colors: {
  custom: {
    50: '#7f6abc',
    500: '#3f309f',
    950: '#000000',
  },
}
SCSS
$custom: #3f309f;
$custom-light: #7f6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#3f309f",
  "rgb": {
    "r": 63,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 248.108,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40088,
    "c": 0.17064,
    "h": 281.6
  },
  "luminance": 0.05674
}

Semantic roles & 50–950 ramp

primary
#3F309F
secondary
#B2BD6E
accent
#DD4BC9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3F309F

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

Preview Lab → · Contrast checker → · Palette generator →

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