#3B18A1#3B18A1

#3B18A1 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.197 H 282.7°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#3B18A1
RGBrgb(59, 24, 161)
HSLhsl(255, 74%, 36%)
HSVhsv(255, 85%, 63%)
CMYKcmyk(63.4%, 85.1%, 0%, 36.9%)
CIE-LABlab(24.18, 50.94, -66.49)
CIE-LCHlch(24.18, 83.77, 307.46°)
OKLaboklab(36.98% 0.0434 -0.1918)
OKLCHoklch(36.98% 0.197 282.7)
XYZxyz(8.5613, 4.1557, 34.0623)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B18A1 #7EA118
analogous
#183AA1 #3B18A1 #8018A1
triadic
#3B18A1 #A13B18 #18A13B
tetradic
#3B18A1 #A1183A #7EA118 #18A180
square
#3B18A1 #A1183A #7EA118 #18A180
split-complementary
#3B18A1 #A18018 #3AA118
monochromatic
#140836 #27106C #3B18A1 #4F20D6 #754FE5

Accessibility & contrast

On white

11.47
#3B18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3B18A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B18A1
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B18A1#FFFFFF#000000##FFFFFF
##3B18A11.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3b18a1;
/* rgb */ color: rgb(59, 24, 161);
/* oklch */ color: oklch(37.0% 0.197 282.7);
Tailwind
colors: {
  custom: {
    50: '#7f5cbe',
    500: '#3b18a1',
    950: '#000000',
  },
}
SCSS
$custom: #3b18a1;
$custom-light: #7f5cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3b18a1",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 255.328,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36975,
    "c": 0.19661,
    "h": 282.7
  },
  "luminance": 0.04156
}

Semantic roles & 50–950 ramp

primary
#3B18A1
secondary
#A8C74E
accent
#F137C1
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3B18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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