#3F307D#3F307D

#3F307D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.1% C 0.125 H 287.7°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#3F307D
RGBrgb(63, 48, 125)
HSLhsl(252, 45%, 34%)
HSVhsv(252, 62%, 49%)
CMYKcmyk(49.6%, 61.6%, 0%, 51%)
CIE-LABlab(25.72, 27.83, -41.65)
CIE-LCHlch(25.72, 50.09, 303.76°)
OKLaboklab(37.13% 0.0379 -0.119)
OKLCHoklch(37.13% 0.125 287.7)
XYZxyz(6.8075, 4.6510, 19.9371)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F307D #6E7D30
analogous
#30487D #3F307D #66307D
triadic
#3F307D #7D3F30 #307D3F
tetradic
#3F307D #7D3048 #6E7D30 #307D66
square
#3F307D #7D3048 #6E7D30 #307D66
split-complementary
#3F307D #7D6630 #487D30
monochromatic
#120E25 #291F51 #3F307D #5541A9 #7764C3

Accessibility & contrast

On white

10.88
#3F307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3F307D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F307D
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F307D#FFFFFF#000000##FFFFFF
##3F307D1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#2A4251
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f307d;
/* rgb */ color: rgb(63, 48, 125);
/* oklch */ color: oklch(37.1% 0.125 287.7);
Tailwind
colors: {
  custom: {
    50: '#7969a3',
    500: '#3f307d',
    950: '#000000',
  },
}
SCSS
$custom: #3f307d;
$custom-light: #7969a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f307d",
  "rgb": {
    "r": 63,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 251.688,
    "s": 44.509,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37127,
    "c": 0.12492,
    "h": 287.7
  },
  "luminance": 0.04651
}

Semantic roles & 50–950 ramp

primary
#3F307D
secondary
#9CAB5E
accent
#D454BB
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #3F307D

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

Preview Lab → · Contrast checker → · Palette generator →

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