#3D18A0#3D18A0

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

Color values

HEX#3D18A0
RGBrgb(61, 24, 160)
HSLhsl(256, 74%, 36%)
HSVhsv(256, 85%, 63%)
CMYKcmyk(61.9%, 85%, 0%, 37.3%)
CIE-LABlab(24.27, 50.85, -65.73)
CIE-LCHlch(24.27, 83.11, 307.73°)
OKLaboklab(37.05% 0.0469 -0.1895)
OKLCHoklch(37.05% 0.195 283.9)
XYZxyz(8.5943, 4.1829, 33.6054)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D18A0 #7BA018
analogous
#1837A0 #3D18A0 #8118A0
triadic
#3D18A0 #A03D18 #18A03D
tetradic
#3D18A0 #A01837 #7BA018 #18A081
square
#3D18A0 #A01837 #7BA018 #18A081
split-complementary
#3D18A0 #A08118 #37A018
monochromatic
#140836 #29106B #3D18A0 #5120D5 #774EE4

Accessibility & contrast

On white

11.43
#3D18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3D18A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D18A0
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D18A0#FFFFFF#000000##FFFFFF
##3D18A01.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA4
Deuteranopia (green-blind)
#00359E
Tritanopia (blue-blind)
#00435F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3d18a0;
/* rgb */ color: rgb(61, 24, 160);
/* oklch */ color: oklch(37.0% 0.195 283.9);
Tailwind
colors: {
  custom: {
    50: '#805cbd',
    500: '#3d18a0',
    950: '#000000',
  },
}
SCSS
$custom: #3d18a0;
$custom-light: #805cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3d18a0",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 256.324,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3705,
    "c": 0.19524,
    "h": 283.9
  },
  "luminance": 0.04183
}

Semantic roles & 50–950 ramp

primary
#3D18A0
secondary
#A6C64D
accent
#F137BE
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3D18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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