#3818B3#3818B3

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

Color values

HEX#3818B3
RGBrgb(56, 24, 179)
HSLhsl(252, 76%, 40%)
HSVhsv(252, 87%, 70%)
CMYKcmyk(68.7%, 86.6%, 0%, 29.8%)
CIE-LABlab(26.00, 55.71, -74.34)
CIE-LCHlch(26.00, 92.90, 306.85°)
OKLaboklab(38.76% 0.0322 -0.2146)
OKLCHoklch(38.76% 0.217 278.5)
XYZxyz(10.0916, 4.7478, 43.0237)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3818B3 #93B318
analogous
#1846B3 #3818B3 #8618B3
triadic
#3818B3 #B33818 #18B338
tetradic
#3818B3 #B31846 #93B318 #18B386
square
#3818B3 #B31846 #93B318 #18B386
split-complementary
#3818B3 #B38618 #46B318
monochromatic
#160A47 #27117D #3818B3 #4D26E2 #795CE9

Accessibility & contrast

On white

10.77
#3818B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3818B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3818B3
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3818B3#FFFFFF#000000##FFFFFF
##3818B31.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3818b3;
/* rgb */ color: rgb(56, 24, 179);
/* oklch */ color: oklch(38.8% 0.217 278.5);
Tailwind
colors: {
  custom: {
    50: '#825dcb',
    500: '#3818b3',
    950: '#000000',
  },
}
SCSS
$custom: #3818b3;
$custom-light: #825dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#3818b3",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 179
  },
  "hsl": {
    "h": 252.387,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38762,
    "c": 0.21705,
    "h": 278.5
  },
  "luminance": 0.04749
}

Semantic roles & 50–950 ramp

primary
#3818B3
secondary
#B5CD5A
accent
#F335CC
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3818B3

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

Preview Lab → · Contrast checker → · Palette generator →

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