#3918B4#3918B4

#3918B4 is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 39.0% C 0.218 H 278.8°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#3918B4
RGBrgb(57, 24, 180)
HSLhsl(253, 76%, 40%)
HSVhsv(253, 87%, 71%)
CMYKcmyk(68.3%, 86.7%, 0%, 29.4%)
CIE-LABlab(26.21, 56.06, -74.60)
CIE-LCHlch(26.21, 93.31, 306.92°)
OKLaboklab(38.96% 0.0334 -0.2154)
OKLCHoklch(38.96% 0.218 278.8)
XYZxyz(10.2496, 4.8175, 43.5609)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3918B4 #93B418
analogous
#1845B4 #3918B4 #8718B4
triadic
#3918B4 #B43918 #18B439
tetradic
#3918B4 #B41845 #93B418 #18B487
square
#3918B4 #B41845 #93B418 #18B487
split-complementary
#3918B4 #B48718 #45B418
monochromatic
#170A48 #28117E #3918B4 #4F27E2 #7B5DE9

Accessibility & contrast

On white

10.69
#3918B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3918B4
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3918B4#FFFFFF#000000##FFFFFF
##3918B41.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3918b4;
/* rgb */ color: rgb(57, 24, 180);
/* oklch */ color: oklch(39.0% 0.218 278.8);
Tailwind
colors: {
  custom: {
    50: '#825ecc',
    500: '#3918b4',
    950: '#000000',
  },
}
SCSS
$custom: #3918b4;
$custom-light: #825ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#3918b4",
  "rgb": {
    "r": 57,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 252.692,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.38958,
    "c": 0.21793,
    "h": 278.8
  },
  "luminance": 0.04818
}

Semantic roles & 50–950 ramp

primary
#3918B4
secondary
#B5CD5B
accent
#F335CB
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3918B4

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

Preview Lab → · Contrast checker → · Palette generator →

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