#3917B4#3917B4

#3917B4 is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 38.9% C 0.219 H 278.9°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#3917B4
RGBrgb(57, 23, 180)
HSLhsl(253, 77%, 40%)
HSVhsv(253, 87%, 71%)
CMYKcmyk(68.3%, 87.2%, 0%, 29.4%)
CIE-LABlab(26.09, 56.41, -74.79)
CIE-LCHlch(26.09, 93.68, 307.02°)
OKLaboklab(38.88% 0.0337 -0.2159)
OKLCHoklch(38.88% 0.219 278.9)
XYZxyz(10.2293, 4.7771, 43.5542)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3917B4 #92B417
analogous
#1743B4 #3917B4 #8817B4
triadic
#3917B4 #B43917 #17B439
tetradic
#3917B4 #B41743 #92B417 #17B488
square
#3917B4 #B41743 #92B417 #17B488
split-complementary
#3917B4 #B48817 #43B417
monochromatic
#170947 #28107E #3917B4 #4E25E3 #7A5BEA

Accessibility & contrast

On white

10.74
#3917B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3917B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3917B4
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3917B4#FFFFFF#000000##FFFFFF
##3917B41.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0037B1
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3917b4;
/* rgb */ color: rgb(57, 23, 180);
/* oklch */ color: oklch(38.9% 0.219 278.9);
Tailwind
colors: {
  custom: {
    50: '#825dcc',
    500: '#3917b4',
    950: '#000000',
  },
}
SCSS
$custom: #3917b4;
$custom-light: #825dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3917b4",
  "rgb": {
    "r": 57,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 252.994,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38877,
    "c": 0.21854,
    "h": 278.9
  },
  "luminance": 0.04778
}

Semantic roles & 50–950 ramp

primary
#3917B4
secondary
#B4CE59
accent
#F434CA
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3917B4

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

Preview Lab → · Contrast checker → · Palette generator →

#3917B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva