#3F308F#3F308F

#3F308F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.150 H 284.1°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#3F308F
RGBrgb(63, 48, 143)
HSLhsl(249, 50%, 37%)
HSVhsv(249, 66%, 56%)
CMYKcmyk(55.9%, 66.4%, 0%, 43.9%)
CIE-LABlab(27.17, 33.63, -50.52)
CIE-LCHlch(27.17, 60.69, 303.65°)
OKLaboklab(38.64% 0.0365 -0.1451)
OKLCHoklch(38.64% 0.15 284.1)
XYZxyz(8.0633, 5.1534, 26.5511)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F308F #808F30
analogous
#30508F #3F308F #6F308F
triadic
#3F308F #8F3F30 #308F3F
tetradic
#3F308F #8F3050 #808F30 #308F6F
square
#3F308F #8F3050 #808F30 #308F6F
split-complementary
#3F308F #8F6F30 #508F30
monochromatic
#171133 #2B2161 #3F308F #533FBD #7B6CCE

Accessibility & contrast

On white

10.34
#3F308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#3F308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F308F
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F308F#FFFFFF#000000##FFFFFF
##3F308F1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#1B485B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3f308f;
/* rgb */ color: rgb(63, 48, 143);
/* oklch */ color: oklch(38.6% 0.150 284.1);
Tailwind
colors: {
  custom: {
    50: '#7c69b1',
    500: '#3f308f',
    950: '#000000',
  },
}
SCSS
$custom: #3f308f;
$custom-light: #7c69b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f308f",
  "rgb": {
    "r": 63,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 249.474,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38641,
    "c": 0.14967,
    "h": 284.1
  },
  "luminance": 0.05154
}

Semantic roles & 50–950 ramp

primary
#3F308F
secondary
#A8B566
accent
#D94FC3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3F308F

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

Preview Lab → · Contrast checker → · Palette generator →

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