#3F18A1#3F18A1

#3F18A1 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.196 H 284.7°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#3F18A1
RGBrgb(63, 24, 161)
HSLhsl(257, 74%, 36%)
HSVhsv(257, 85%, 63%)
CMYKcmyk(60.9%, 85.1%, 0%, 36.9%)
CIE-LABlab(24.58, 51.33, -65.81)
CIE-LCHlch(24.58, 83.46, 307.95°)
OKLaboklab(37.35% 0.0498 -0.1897)
OKLCHoklch(37.35% 0.196 284.7)
XYZxyz(8.8076, 4.2827, 34.0738)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F18A1 #7AA118
analogous
#1836A1 #3F18A1 #8418A1
triadic
#3F18A1 #A13F18 #18A13F
tetradic
#3F18A1 #A11836 #7AA118 #18A184
square
#3F18A1 #A11836 #7AA118 #18A184
split-complementary
#3F18A1 #A18418 #36A118
monochromatic
#150836 #2A106C #3F18A1 #5420D6 #794FE5

Accessibility & contrast

On white

11.31
#3F18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3F18A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F18A1
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F18A1#FFFFFF#000000##FFFFFF
##3F18A11.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3f18a1;
/* rgb */ color: rgb(63, 24, 161);
/* oklch */ color: oklch(37.4% 0.196 284.7);
Tailwind
colors: {
  custom: {
    50: '#815dbe',
    500: '#3f18a1',
    950: '#000000',
  },
}
SCSS
$custom: #3f18a1;
$custom-light: #815dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3f18a1",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 257.08,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3735,
    "c": 0.1961,
    "h": 284.7
  },
  "luminance": 0.04283
}

Semantic roles & 50–950 ramp

primary
#3F18A1
secondary
#A4C74E
accent
#F137BC
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3F18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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