#3B218F#3B218F

#3B218F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.168 H 285.1°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#3B218F
RGBrgb(59, 33, 143)
HSLhsl(254, 63%, 35%)
HSVhsv(254, 77%, 56%)
CMYKcmyk(58.7%, 76.9%, 0%, 43.9%)
CIE-LABlab(23.67, 41.57, -56.26)
CIE-LCHlch(23.67, 69.96, 306.46°)
OKLaboklab(36.05% 0.0438 -0.162)
OKLCHoklch(36.05% 0.168 285.1)
XYZxyz(7.3039, 4.0002, 26.3685)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B218F #758F21
analogous
#213E8F #3B218F #72218F
triadic
#3B218F #8F3B21 #218F3B
tetradic
#3B218F #8F213E #758F21 #218F72
square
#3B218F #8F213E #758F21 #218F72
split-complementary
#3B218F #8F7221 #3E8F21
monochromatic
#120A2C #26165D #3B218F #502CC1 #7253D7

Accessibility & contrast

On white

11.67
#3B218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3B218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B218F
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B218F#FFFFFF#000000##FFFFFF
##3B218F1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#0F4057
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3b218f;
/* rgb */ color: rgb(59, 33, 143);
/* oklch */ color: oklch(36.0% 0.168 285.1);
Tailwind
colors: {
  custom: {
    50: '#7b60b1',
    500: '#3b218f',
    950: '#000000',
  },
}
SCSS
$custom: #3b218f;
$custom-light: #7b60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b218f",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 254.182,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3605,
    "c": 0.16786,
    "h": 285.1
  },
  "luminance": 0.04001
}

Semantic roles & 50–950 ramp

primary
#3B218F
secondary
#A2BB51
accent
#E642BF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3B218F

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

Preview Lab → · Contrast checker → · Palette generator →

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