#3C18B4#3C18B4

#3C18B4 is a dark, highly saturated violet. Relative luminance 0.049; OKLCH L 39.2% C 0.217 H 280.1°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#3C18B4
RGBrgb(60, 24, 180)
HSLhsl(254, 76%, 40%)
HSVhsv(254, 87%, 71%)
CMYKcmyk(66.7%, 86.7%, 0%, 29.4%)
CIE-LABlab(26.47, 56.28, -74.15)
CIE-LCHlch(26.47, 93.09, 307.20°)
OKLaboklab(39.2% 0.038 -0.214)
OKLCHoklch(39.2% 0.217 280.1)
XYZxyz(10.4257, 4.9084, 43.5692)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C18B4 #90B418
analogous
#1842B4 #3C18B4 #8A18B4
triadic
#3C18B4 #B43C18 #18B43C
tetradic
#3C18B4 #B41842 #90B418 #18B48A
square
#3C18B4 #B41842 #90B418 #18B48A
split-complementary
#3C18B4 #B48A18 #42B418
monochromatic
#180A48 #2A117E #3C18B4 #5227E2 #7D5DE9

Accessibility & contrast

On white

10.60
#3C18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3C18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C18B4
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C18B4#FFFFFF#000000##FFFFFF
##3C18B41.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3c18b4;
/* rgb */ color: rgb(60, 24, 180);
/* oklch */ color: oklch(39.2% 0.217 280.1);
Tailwind
colors: {
  custom: {
    50: '#845ecc',
    500: '#3c18b4',
    950: '#000000',
  },
}
SCSS
$custom: #3c18b4;
$custom-light: #845ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#3c18b4",
  "rgb": {
    "r": 60,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 253.846,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.39203,
    "c": 0.21735,
    "h": 280.1
  },
  "luminance": 0.04909
}

Semantic roles & 50–950 ramp

primary
#3C18B4
secondary
#B3CD5B
accent
#F335C7
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3C18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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