#3F18A0#3F18A0

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

Color values

HEX#3F18A0
RGBrgb(63, 24, 160)
HSLhsl(257, 74%, 36%)
HSVhsv(257, 85%, 63%)
CMYKcmyk(60.6%, 85%, 0%, 37.3%)
CIE-LABlab(24.47, 51.05, -65.39)
CIE-LCHlch(24.47, 82.96, 307.98°)
OKLaboklab(37.24% 0.0502 -0.1884)
OKLCHoklch(37.24% 0.195 284.9)
XYZxyz(8.7198, 4.2475, 33.6113)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F18A0 #79A018
analogous
#1835A0 #3F18A0 #8318A0
triadic
#3F18A0 #A03F18 #18A03F
tetradic
#3F18A0 #A01835 #79A018 #18A083
square
#3F18A0 #A01835 #79A018 #18A083
split-complementary
#3F18A0 #A08318 #35A018
monochromatic
#150836 #2A106B #3F18A0 #5420D5 #794EE4

Accessibility & contrast

On white

11.35
#3F18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3F18A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F18A0
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F18A0#FFFFFF#000000##FFFFFF
##3F18A01.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f18a0;
/* rgb */ color: rgb(63, 24, 160);
/* oklch */ color: oklch(37.2% 0.195 284.9);
Tailwind
colors: {
  custom: {
    50: '#815dbd',
    500: '#3f18a0',
    950: '#000000',
  },
}
SCSS
$custom: #3f18a0;
$custom-light: #815dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3f18a0",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 257.206,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37241,
    "c": 0.195,
    "h": 284.9
  },
  "luminance": 0.04248
}

Semantic roles & 50–950 ramp

primary
#3F18A0
secondary
#A4C64D
accent
#F137BB
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3F18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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