#3A18B4#3A18B4

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

Color values

HEX#3A18B4
RGBrgb(58, 24, 180)
HSLhsl(253, 76%, 40%)
HSVhsv(253, 87%, 71%)
CMYKcmyk(67.8%, 86.7%, 0%, 29.4%)
CIE-LABlab(26.29, 56.13, -74.45)
CIE-LCHlch(26.29, 93.24, 307.01°)
OKLaboklab(39.04% 0.0349 -0.2149)
OKLCHoklch(39.04% 0.218 279.2)
XYZxyz(10.3071, 4.8472, 43.5636)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A18B4 #92B418
analogous
#1844B4 #3A18B4 #8818B4
triadic
#3A18B4 #B43A18 #18B43A
tetradic
#3A18B4 #B41844 #92B418 #18B488
square
#3A18B4 #B41844 #92B418 #18B488
split-complementary
#3A18B4 #B48818 #44B418
monochromatic
#170A48 #29117E #3A18B4 #5027E2 #7C5DE9

Accessibility & contrast

On white

10.66
#3A18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3A18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A18B4
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A18B4#FFFFFF#000000##FFFFFF
##3A18B41.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.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: #3a18b4;
/* rgb */ color: rgb(58, 24, 180);
/* oklch */ color: oklch(39.0% 0.218 279.2);
Tailwind
colors: {
  custom: {
    50: '#835ecc',
    500: '#3a18b4',
    950: '#000000',
  },
}
SCSS
$custom: #3a18b4;
$custom-light: #835ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a18b4",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 253.077,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.39038,
    "c": 0.21774,
    "h": 279.2
  },
  "luminance": 0.04848
}

Semantic roles & 50–950 ramp

primary
#3A18B4
secondary
#B4CD5B
accent
#F335CA
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3A18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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