#3A18A0#3A18A0

#3A18A0 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.196 H 282.4°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#3A18A0
RGBrgb(58, 24, 160)
HSLhsl(255, 74%, 36%)
HSVhsv(255, 85%, 63%)
CMYKcmyk(63.8%, 85%, 0%, 37.3%)
CIE-LABlab(23.97, 50.57, -66.24)
CIE-LCHlch(23.97, 83.34, 307.36°)
OKLaboklab(36.77% 0.0422 -0.1911)
OKLCHoklch(36.77% 0.196 282.4)
XYZxyz(8.4147, 4.0903, 33.5970)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A18A0 #7EA018
analogous
#183AA0 #3A18A0 #7E18A0
triadic
#3A18A0 #A03A18 #18A03A
tetradic
#3A18A0 #A0183A #7EA018 #18A07E
square
#3A18A0 #A0183A #7EA018 #18A07E
split-complementary
#3A18A0 #A07E18 #3AA018
monochromatic
#130836 #27106B #3A18A0 #4D20D5 #744EE4

Accessibility & contrast

On white

11.55
#3A18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3A18A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A18A0
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A18A0#FFFFFF#000000##FFFFFF
##3A18A01.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a18a0;
/* rgb */ color: rgb(58, 24, 160);
/* oklch */ color: oklch(36.8% 0.196 282.4);
Tailwind
colors: {
  custom: {
    50: '#7f5cbd',
    500: '#3a18a0',
    950: '#000000',
  },
}
SCSS
$custom: #3a18a0;
$custom-light: #7f5cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a18a0",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 255,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36773,
    "c": 0.19565,
    "h": 282.4
  },
  "luminance": 0.04091
}

Semantic roles & 50–950 ramp

primary
#3A18A0
secondary
#A8C64D
accent
#F137C2
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3A18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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