#3F2D9D#3F2D9D

#3F2D9D is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.172 H 282.5°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#3F2D9D
RGBrgb(63, 45, 157)
HSLhsl(250, 55%, 40%)
HSVhsv(250, 71%, 62%)
CMYKcmyk(59.9%, 71.3%, 0%, 38.4%)
CIE-LABlab(27.76, 39.90, -58.15)
CIE-LCHlch(27.76, 70.52, 304.46°)
OKLaboklab(39.45% 0.0371 -0.1675)
OKLCHoklch(39.45% 0.172 282.5)
XYZxyz(9.0722, 5.3672, 32.4497)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2D9D #8B9D2D
analogous
#2D539D #3F2D9D #772D9D
triadic
#3F2D9D #9D3F2D #2D9D3F
tetradic
#3F2D9D #9D2D53 #8B9D2D #2D9D77
square
#3F2D9D #9D2D53 #8B9D2D #2D9D77
split-complementary
#3F2D9D #9D772D #539D2D
monochromatic
#19123E #2C1F6D #3F2D9D #553FC8 #7F6FD6

Accessibility & contrast

On white

10.13
#3F2D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F2D9D
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2D9D#FFFFFF#000000##FFFFFF
##3F2D9D1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003E9B
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3f2d9d;
/* rgb */ color: rgb(63, 45, 157);
/* oklch */ color: oklch(39.4% 0.172 282.5);
Tailwind
colors: {
  custom: {
    50: '#7f68bb',
    500: '#3f2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #3f2d9d;
$custom-light: #7f68bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2d9d",
  "rgb": {
    "r": 63,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 249.643,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39448,
    "c": 0.17156,
    "h": 282.5
  },
  "luminance": 0.05368
}

Semantic roles & 50–950 ramp

primary
#3F2D9D
secondary
#AFBD69
accent
#DF49C7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3F2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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