#3918B3#3918B3

#3918B3 is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 38.8% C 0.217 H 279.0°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#3918B3
RGBrgb(57, 24, 179)
HSLhsl(253, 76%, 40%)
HSVhsv(253, 87%, 70%)
CMYKcmyk(68.2%, 86.6%, 0%, 29.8%)
CIE-LABlab(26.09, 55.78, -74.20)
CIE-LCHlch(26.09, 92.83, 306.94°)
OKLaboklab(38.84% 0.0338 -0.2142)
OKLCHoklch(38.84% 0.217 279)
XYZxyz(10.1481, 4.7769, 43.0263)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3918B3 #92B318
analogous
#1845B3 #3918B3 #8618B3
triadic
#3918B3 #B33918 #18B339
tetradic
#3918B3 #B31845 #92B318 #18B386
square
#3918B3 #B31845 #92B318 #18B386
split-complementary
#3918B3 #B38618 #45B318
monochromatic
#170A47 #28117D #3918B3 #4E26E2 #7A5CE9

Accessibility & contrast

On white

10.74
#3918B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3918B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3918B3
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3918B3#FFFFFF#000000##FFFFFF
##3918B31.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)
#0043B7
Deuteranopia (green-blind)
#0038B0
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3918b3;
/* rgb */ color: rgb(57, 24, 179);
/* oklch */ color: oklch(38.8% 0.217 279.0);
Tailwind
colors: {
  custom: {
    50: '#825dcb',
    500: '#3918b3',
    950: '#000000',
  },
}
SCSS
$custom: #3918b3;
$custom-light: #825dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#3918b3",
  "rgb": {
    "r": 57,
    "g": 24,
    "b": 179
  },
  "hsl": {
    "h": 252.774,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38842,
    "c": 0.21684,
    "h": 279
  },
  "luminance": 0.04778
}

Semantic roles & 50–950 ramp

primary
#3918B3
secondary
#B4CD5A
accent
#F335CA
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3918B3

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

Preview Lab → · Contrast checker → · Palette generator →

#3918B3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva