#3F1DA8#3F1DA8

#3F1DA8 is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 38.6% C 0.200 H 282.9°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#3F1DA8
RGBrgb(63, 29, 168)
HSLhsl(255, 71%, 39%)
HSVhsv(255, 83%, 66%)
CMYKcmyk(62.5%, 82.7%, 0%, 34.1%)
CIE-LABlab(26.05, 51.26, -67.64)
CIE-LCHlch(26.05, 84.87, 307.15°)
OKLaboklab(38.58% 0.0448 -0.1951)
OKLCHoklch(38.58% 0.2 282.9)
XYZxyz(9.5550, 4.7620, 37.4538)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1DA8 #86A81D
analogous
#1D41A8 #3F1DA8 #841DA8
triadic
#3F1DA8 #A83F1D #1DA83F
tetradic
#3F1DA8 #A81D41 #86A81D #1DA884
square
#3F1DA8 #A81D41 #86A81D #1DA884
split-complementary
#3F1DA8 #A8841D #41A81D
monochromatic
#180B40 #2B1474 #3F1DA8 #5428DA #7D5CE3

Accessibility & contrast

On white

10.75
#3F1DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3F1DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1DA8
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1DA8#FFFFFF#000000##FFFFFF
##3F1DA81.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0039A6
Tritanopia (blue-blind)
#004864
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f1da8;
/* rgb */ color: rgb(63, 29, 168);
/* oklch */ color: oklch(38.6% 0.200 282.9);
Tailwind
colors: {
  custom: {
    50: '#825fc3',
    500: '#3f1da8',
    950: '#000000',
  },
}
SCSS
$custom: #3f1da8;
$custom-light: #825fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1da8",
  "rgb": {
    "r": 63,
    "g": 29,
    "b": 168
  },
  "hsl": {
    "h": 254.676,
    "s": 70.558,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38581,
    "c": 0.20015,
    "h": 282.9
  },
  "luminance": 0.04763
}

Semantic roles & 50–950 ramp

primary
#3F1DA8
secondary
#ACC75A
accent
#ED3AC2
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3F1DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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